@yext/visual-editor 1.1.0 → 1.2.0-alpha.1
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/editor.css +1 -1
- package/dist/index.d.ts +183 -122
- package/dist/plugin/plugin.js +135 -107
- package/dist/{visual-editor-61w72F9n.js → visual-editor--_BC_6UD.js} +167 -159
- package/dist/{visual-editor-Ba6zACDQ.js → visual-editor-5SNzvw5Y.js} +136 -128
- package/dist/visual-editor-5viILmK2.js +223 -0
- package/dist/visual-editor-8M5Hqx4X.js +211 -0
- package/dist/visual-editor-B25725d2.js +211 -0
- package/dist/{visual-editor-BkxAQO_k.js → visual-editor-B76RxU87.js} +242 -234
- package/dist/{visual-editor-Dk-mLAYL.js → visual-editor-BBOinHIe.js} +127 -119
- package/dist/{visual-editor-ypri9B8k.js → visual-editor-BQuji8zo.js} +138 -130
- package/dist/{visual-editor-4PC_Jbxw.js → visual-editor-BVQuqld6.js} +137 -129
- package/dist/{visual-editor-CXL-7dJk.js → visual-editor-BWPq78Qw.js} +130 -122
- package/dist/visual-editor-BwrhuMAN.js +199 -0
- package/dist/{visual-editor-yVhbEcAn.js → visual-editor-C1KwbJQV.js} +136 -128
- package/dist/{visual-editor-ByYpunlr.js → visual-editor-C2CEpqwe.js} +161 -153
- package/dist/visual-editor-C2dpF5F8.js +211 -0
- package/dist/{visual-editor-B_0TDDMF.js → visual-editor-C8M03jq3.js} +128 -120
- package/dist/visual-editor-C9gJjr-S.js +199 -0
- package/dist/visual-editor-CBHqDMaW.js +223 -0
- package/dist/visual-editor-CMmyMiWT.js +199 -0
- package/dist/visual-editor-CNE02o_H.js +211 -0
- package/dist/visual-editor-COJhU5Y-.js +199 -0
- package/dist/visual-editor-CPKET4Hk.js +211 -0
- package/dist/{visual-editor-BoTPwHeG.js → visual-editor-C_-4ABIH.js} +147 -139
- package/dist/visual-editor-CaBeaBn6.js +199 -0
- package/dist/{visual-editor-Cb4czzH6.js → visual-editor-Cb4STUVq.js} +121 -113
- package/dist/{visual-editor-Bg35gfR-.js → visual-editor-CgYnXHt5.js} +168 -160
- package/dist/{visual-editor-CW8akV_N.js → visual-editor-CmwwapsT.js} +147 -139
- package/dist/visual-editor-CqOv3Qi-.js +199 -0
- package/dist/visual-editor-CrSHjfq2.js +199 -0
- package/dist/{visual-editor-5hC9CiKV.js → visual-editor-Cw50-3Ie.js} +158 -150
- package/dist/{visual-editor-DHVv7xF2.js → visual-editor-CzXf04HL.js} +213 -205
- package/dist/{visual-editor-rnH99oHL.js → visual-editor-D-VY6Vld.js} +126 -118
- package/dist/{visual-editor-C4JNTg1k.js → visual-editor-DN2q-iMG.js} +126 -118
- package/dist/{visual-editor-CNcsYpC2.js → visual-editor-DRqsvd4g.js} +136 -128
- package/dist/{visual-editor-jcJjuKEF.js → visual-editor-DY3OUO2L.js} +137 -129
- package/dist/visual-editor-DeUPgs0w.js +199 -0
- package/dist/visual-editor-Dhi0FdVd.js +199 -0
- package/dist/visual-editor-Dj53QzhR.js +207 -0
- package/dist/visual-editor-DlW_yHKs.js +211 -0
- package/dist/{visual-editor-BDA7Unrg.js → visual-editor-DrkYvKxe.js} +128 -120
- package/dist/visual-editor-Du-OtXB5.js +199 -0
- package/dist/visual-editor-EMklzKJd.js +199 -0
- package/dist/visual-editor-EN8CT9E3.js +199 -0
- package/dist/visual-editor-H4pE1deN.js +223 -0
- package/dist/visual-editor-Sp-srIpj.js +199 -0
- package/dist/{visual-editor-DF2RHbHR.js → visual-editor-adUa8gk2.js} +155 -147
- package/dist/{visual-editor-Ik6jPnPB.js → visual-editor-dvq1yloE.js} +143 -135
- package/dist/visual-editor-f0OGRIJQ.js +199 -0
- package/dist/{visual-editor-DU3n5X-L.js → visual-editor-kfwVvauU.js} +161 -153
- package/dist/{visual-editor-Dyg4VAca.js → visual-editor-q25Hd_I3.js} +147 -139
- package/dist/visual-editor-qqxBEEkD.js +223 -0
- package/dist/visual-editor.js +17074 -16147
- package/package.json +6 -7
- package/dist/visual-editor-B1g1zuGA.js +0 -197
- package/dist/visual-editor-BYS2Ltqo.js +0 -197
- package/dist/visual-editor-BZsYFw5Y.js +0 -197
- package/dist/visual-editor-B_hM9xz0.js +0 -197
- package/dist/visual-editor-Bqbe9eY3.js +0 -209
- package/dist/visual-editor-BtG64Fhc.js +0 -209
- package/dist/visual-editor-Bz2F1AP3.js +0 -209
- package/dist/visual-editor-CB6pY2S6.js +0 -197
- package/dist/visual-editor-CC6NDyDt.js +0 -197
- package/dist/visual-editor-CG5u_8Wq.js +0 -209
- package/dist/visual-editor-CGQpxjE0.js +0 -197
- package/dist/visual-editor-CJtwiWfR.js +0 -209
- package/dist/visual-editor-Ce7thgPY.js +0 -221
- package/dist/visual-editor-CjzKal3b.js +0 -205
- package/dist/visual-editor-DIVmTakP.js +0 -197
- package/dist/visual-editor-DL3JgtH-.js +0 -197
- package/dist/visual-editor-DMc0Aka2.js +0 -197
- package/dist/visual-editor-DWw0LdJe.js +0 -209
- package/dist/visual-editor-DYkTM2vr.js +0 -197
- package/dist/visual-editor-DwTwZYAH.js +0 -221
- package/dist/visual-editor-HYr72_rc.js +0 -197
- package/dist/visual-editor-Pb1OBn4r.js +0 -197
- package/dist/visual-editor-YRVOkD4u.js +0 -221
- package/dist/visual-editor-YiQJ3Exb.js +0 -221
- package/dist/visual-editor-oB2xWu3p.js +0 -197
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { TOptions } from 'i18next';
|
|
|
7
7
|
import { ImageType, CTA as CTA$1, LinkType, HoursTableProps as HoursTableProps$1, ComplexImageType, HoursType, AddressType, DayOfWeekNames, Coordinate, ListingType } from '@yext/pages-components';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
9
|
import * as _puckeditor_core from '@puckeditor/core';
|
|
10
|
-
import {
|
|
10
|
+
import { Data, DefaultComponentProps, DefaultRootProps, Config, Field, ComponentConfig, CustomField, ArrayField, BaseField, ObjectField, NumberField, Fields, ComponentData, Slot } from '@puckeditor/core';
|
|
11
11
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
12
12
|
import { VariantProps } from 'class-variance-authority';
|
|
13
13
|
import * as _yext_search_headless_react from '@yext/search-headless-react';
|
|
@@ -407,29 +407,22 @@ type RichText = {
|
|
|
407
407
|
};
|
|
408
408
|
|
|
409
409
|
/**
|
|
410
|
-
*
|
|
411
|
-
* @ai This value MUST be one of the following
|
|
412
|
-
* { bgColor: "bg-white", textColor: "text-black" }
|
|
413
|
-
* { bgColor: "bg-palette-primary-light", textColor: "text-black", isDarkBackground: false }
|
|
414
|
-
* { bgColor: "bg-palette-secondary-light", textColor: "text-black", isDarkBackground: false }
|
|
415
|
-
* { bgColor: "bg-palette-tertiary-light", textColor: "text-black", isDarkBackground: false }
|
|
416
|
-
* { bgColor: "bg-palette-quaternary-light", textColor: "text-black", isDarkBackground: false }
|
|
417
|
-
* { bgColor: "bg-palette-primary-dark", textColor: "text-white", isDarkBackground: true }
|
|
418
|
-
* { bgColor: "bg-palette-secondary-dark", textColor: "text-white", isDarkBackground: true }
|
|
410
|
+
* An object representing a color based on the theme specified by the user.
|
|
419
411
|
*/
|
|
420
|
-
type
|
|
421
|
-
/** The
|
|
422
|
-
|
|
423
|
-
/** The
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
|
|
412
|
+
type ThemeColor = {
|
|
413
|
+
/** The theme color token selected by the user. */
|
|
414
|
+
selectedColor: string;
|
|
415
|
+
/** The theme color token that contrasts with the selectedColor. */
|
|
416
|
+
contrastingColor: string;
|
|
417
|
+
/**
|
|
418
|
+
* Whether the user-selected color is dark.
|
|
419
|
+
*/
|
|
420
|
+
isDarkColor?: boolean;
|
|
427
421
|
};
|
|
428
|
-
|
|
422
|
+
declare const backgroundColors: Record<string, {
|
|
429
423
|
label: string;
|
|
430
|
-
value:
|
|
431
|
-
}
|
|
432
|
-
declare const backgroundColors: Record<string, BackgroundOption>;
|
|
424
|
+
value: ThemeColor;
|
|
425
|
+
}>;
|
|
433
426
|
/** Corresponds to the different semantic heading levels */
|
|
434
427
|
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
435
428
|
declare const defaultThemeTailwindExtensions: {
|
|
@@ -535,12 +528,13 @@ declare const ThemeOptions: {
|
|
|
535
528
|
value: boolean;
|
|
536
529
|
}[];
|
|
537
530
|
};
|
|
531
|
+
declare const VisualEditorThemeClassSafelist: string[];
|
|
538
532
|
declare const VisualEditorComponentsContentPath = "node_modules/@yext/visual-editor/dist/**/*.js";
|
|
539
533
|
|
|
540
|
-
declare const useBackground: () => Required<
|
|
534
|
+
declare const useBackground: () => Required<ThemeColor> | undefined;
|
|
541
535
|
declare const BackgroundProvider: ({ children, value, }: {
|
|
542
536
|
children: ReactNode;
|
|
543
|
-
value: Required<
|
|
537
|
+
value: Required<ThemeColor>;
|
|
544
538
|
}) => react_jsx_runtime.JSX.Element;
|
|
545
539
|
|
|
546
540
|
/**
|
|
@@ -706,16 +700,6 @@ declare const themeManagerTwMergeConfiguration: {
|
|
|
706
700
|
};
|
|
707
701
|
declare function themeManagerCn(...inputs: ClassValue[]): string;
|
|
708
702
|
|
|
709
|
-
/**
|
|
710
|
-
* Filters out gated layout components and categories from a Puck configuration object.
|
|
711
|
-
*
|
|
712
|
-
* @param config - The original Puck configuration object.
|
|
713
|
-
* @param additionalLayoutComponents - An optional list of gated component names to keep.
|
|
714
|
-
* @param additionalLayoutCategories - An optional list of gated category names to keep.
|
|
715
|
-
* @returns A new, filtered configuration object.
|
|
716
|
-
*/
|
|
717
|
-
declare const filterComponentsFromConfig: <C extends Config>(config: C, additionalLayoutComponents?: string[], additionalLayoutCategories?: string[]) => C;
|
|
718
|
-
|
|
719
703
|
type RootConfig = {
|
|
720
704
|
title?: string;
|
|
721
705
|
description?: string;
|
|
@@ -760,7 +744,7 @@ declare const bodyVariants: (props?: ({
|
|
|
760
744
|
variant?: "xs" | "sm" | "base" | "lg" | null | undefined;
|
|
761
745
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
762
746
|
interface BodyProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof bodyVariants> {
|
|
763
|
-
color?:
|
|
747
|
+
color?: ThemeColor;
|
|
764
748
|
}
|
|
765
749
|
declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
766
750
|
|
|
@@ -799,15 +783,9 @@ type YextEntityField<T> = {
|
|
|
799
783
|
constantValue: T;
|
|
800
784
|
/** Whether to use the Yext field or the constant value */
|
|
801
785
|
constantValueEnabled?: boolean;
|
|
802
|
-
/**
|
|
803
|
-
* Whether the field can be translated or not.
|
|
804
|
-
* @ai always omit this property
|
|
805
|
-
*/
|
|
786
|
+
/** Whether the field can be translated or not. */
|
|
806
787
|
disallowTranslation?: boolean;
|
|
807
|
-
/**
|
|
808
|
-
* Filter the embedded field input to this type.
|
|
809
|
-
* @ai always omit this property
|
|
810
|
-
*/
|
|
788
|
+
/** Filter the embedded field input to this type. */
|
|
811
789
|
selectedType?: string;
|
|
812
790
|
};
|
|
813
791
|
|
|
@@ -844,7 +822,7 @@ type ResolveComponentDataOptions = {
|
|
|
844
822
|
variant?: BodyProps["variant"];
|
|
845
823
|
isDarkBackground?: boolean;
|
|
846
824
|
className?: string;
|
|
847
|
-
color?:
|
|
825
|
+
color?: ThemeColor;
|
|
848
826
|
output?: "render" | "plainText";
|
|
849
827
|
};
|
|
850
828
|
/**
|
|
@@ -1258,7 +1236,7 @@ type CTAProps = {
|
|
|
1258
1236
|
ariaLabel?: string;
|
|
1259
1237
|
onClick?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement, MouseEvent>) => void;
|
|
1260
1238
|
disabled?: boolean;
|
|
1261
|
-
color?:
|
|
1239
|
+
color?: ThemeColor;
|
|
1262
1240
|
openInNewTab?: boolean;
|
|
1263
1241
|
/**
|
|
1264
1242
|
* When true and variant is "link", applies vertical padding (py-3) to the CTA.
|
|
@@ -1286,7 +1264,7 @@ declare const headingVariants: (props?: ({
|
|
|
1286
1264
|
interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
|
|
1287
1265
|
level: HeadingLevel;
|
|
1288
1266
|
semanticLevelOverride?: HeadingLevel | "span";
|
|
1289
|
-
color?:
|
|
1267
|
+
color?: ThemeColor;
|
|
1290
1268
|
}
|
|
1291
1269
|
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
1292
1270
|
|
|
@@ -1335,6 +1313,7 @@ type MaybeLinkProps = {
|
|
|
1335
1313
|
className?: string;
|
|
1336
1314
|
eventName?: string;
|
|
1337
1315
|
variant?: CTAVariant;
|
|
1316
|
+
color?: ThemeColor;
|
|
1338
1317
|
alwaysHideCaret?: boolean;
|
|
1339
1318
|
ariaLabel?: string;
|
|
1340
1319
|
disabled?: boolean;
|
|
@@ -1354,7 +1333,7 @@ declare const maxWidthVariants: (props?: ({
|
|
|
1354
1333
|
maxWidth?: "768px" | "960px" | "1024px" | "1280px" | "1440px" | "theme" | "fullWidth" | null | undefined;
|
|
1355
1334
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1356
1335
|
interface PageSectionProps extends VariantProps<typeof maxWidthVariants>, React.HTMLAttributes<HTMLDivElement> {
|
|
1357
|
-
background?:
|
|
1336
|
+
background?: ThemeColor;
|
|
1358
1337
|
verticalPadding?: VariantProps<typeof pageSectionVariants>["verticalPadding"];
|
|
1359
1338
|
as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
|
|
1360
1339
|
outerClassName?: string;
|
|
@@ -1366,16 +1345,17 @@ type PhoneAtomProps = {
|
|
|
1366
1345
|
phoneNumber: string;
|
|
1367
1346
|
label?: string;
|
|
1368
1347
|
eventName?: string;
|
|
1369
|
-
backgroundColor?:
|
|
1348
|
+
backgroundColor?: ThemeColor;
|
|
1370
1349
|
format: "domestic" | "international" | undefined;
|
|
1371
1350
|
includeHyperlink: boolean;
|
|
1372
1351
|
includeIcon: boolean;
|
|
1352
|
+
linkColor?: ThemeColor;
|
|
1373
1353
|
onClick?: () => void;
|
|
1374
1354
|
};
|
|
1375
1355
|
declare const PhoneAtom: (props: PhoneAtomProps) => react_jsx_runtime.JSX.Element;
|
|
1376
1356
|
|
|
1377
1357
|
interface BackgroundProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1378
|
-
background?:
|
|
1358
|
+
background?: ThemeColor;
|
|
1379
1359
|
as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
|
|
1380
1360
|
}
|
|
1381
1361
|
declare const Background: React.ForwardRefExoticComponent<BackgroundProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1432,6 +1412,7 @@ type ReviewStarsProps = {
|
|
|
1432
1412
|
averageRating: number;
|
|
1433
1413
|
reviewCount?: number;
|
|
1434
1414
|
className?: string;
|
|
1415
|
+
color?: ThemeColor;
|
|
1435
1416
|
};
|
|
1436
1417
|
declare const ReviewStars: (props: ReviewStarsProps) => react_jsx_runtime.JSX.Element;
|
|
1437
1418
|
/**
|
|
@@ -1455,7 +1436,7 @@ declare const layoutVariants: (props?: ({
|
|
|
1455
1436
|
columnFormatting?: "default" | "none" | "forceHorizontal" | null | undefined;
|
|
1456
1437
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1457
1438
|
interface layoutProps extends VariantProps<typeof layoutVariants> {
|
|
1458
|
-
backgroundColor?:
|
|
1439
|
+
backgroundColor?: ThemeColor;
|
|
1459
1440
|
}
|
|
1460
1441
|
|
|
1461
1442
|
interface GridProps extends layoutProps {
|
|
@@ -1493,12 +1474,12 @@ interface AddressProps {
|
|
|
1493
1474
|
showGetDirectionsLink: boolean;
|
|
1494
1475
|
/** The variant of the get directions button */
|
|
1495
1476
|
ctaVariant: CTAVariant;
|
|
1496
|
-
color?:
|
|
1477
|
+
color?: ThemeColor;
|
|
1497
1478
|
};
|
|
1498
1479
|
/** @internal */
|
|
1499
1480
|
parentData?: {
|
|
1500
1481
|
field: string;
|
|
1501
|
-
address
|
|
1482
|
+
address?: AddressType;
|
|
1502
1483
|
};
|
|
1503
1484
|
}
|
|
1504
1485
|
declare const Address: ComponentConfig<{
|
|
@@ -1514,7 +1495,7 @@ type BodyTextProps = {
|
|
|
1514
1495
|
/** The size of the body text. */
|
|
1515
1496
|
variant: BodyProps["variant"];
|
|
1516
1497
|
/** The color of the body text. */
|
|
1517
|
-
color?:
|
|
1498
|
+
color?: ThemeColor;
|
|
1518
1499
|
};
|
|
1519
1500
|
/**
|
|
1520
1501
|
* @internal Controlled data from the parent section.
|
|
@@ -1561,7 +1542,7 @@ interface CTAWrapperProps {
|
|
|
1561
1542
|
variant: CTAVariant;
|
|
1562
1543
|
/** The image to use if the CTA is set to preset image */
|
|
1563
1544
|
presetImage?: PresetImageType;
|
|
1564
|
-
color?:
|
|
1545
|
+
color?: ThemeColor;
|
|
1565
1546
|
};
|
|
1566
1547
|
/** Additional CSS classes to apply to the CTA. */
|
|
1567
1548
|
className?: string;
|
|
@@ -1588,6 +1569,8 @@ interface EmailsProps {
|
|
|
1588
1569
|
styles?: {
|
|
1589
1570
|
listLength?: number;
|
|
1590
1571
|
showIcon?: boolean;
|
|
1572
|
+
/** The color applied to both the email icon background and the email link. */
|
|
1573
|
+
color?: ThemeColor;
|
|
1591
1574
|
};
|
|
1592
1575
|
/** @internal Event name to be used for click analytics */
|
|
1593
1576
|
eventName?: string;
|
|
@@ -1601,7 +1584,7 @@ declare const Emails: ComponentConfig<EmailsProps>;
|
|
|
1601
1584
|
|
|
1602
1585
|
type GetDirectionsProps = {
|
|
1603
1586
|
variant: CTAVariant;
|
|
1604
|
-
color?:
|
|
1587
|
+
color?: ThemeColor;
|
|
1605
1588
|
};
|
|
1606
1589
|
declare const GetDirections: ComponentConfig<{
|
|
1607
1590
|
props: GetDirectionsProps;
|
|
@@ -1620,12 +1603,12 @@ type HeadingTextProps = {
|
|
|
1620
1603
|
align: "left" | "center" | "right";
|
|
1621
1604
|
/** Optional override to render a different HTML tag instead of the one based on the level */
|
|
1622
1605
|
semanticLevelOverride?: HeadingLevel | "span";
|
|
1623
|
-
color?:
|
|
1606
|
+
color?: ThemeColor;
|
|
1624
1607
|
};
|
|
1625
1608
|
/** @internal Controlled data from the parent section */
|
|
1626
1609
|
parentData?: {
|
|
1627
1610
|
field: string;
|
|
1628
|
-
text
|
|
1611
|
+
text?: string;
|
|
1629
1612
|
};
|
|
1630
1613
|
};
|
|
1631
1614
|
declare const HeadingText: ComponentConfig<{
|
|
@@ -1678,8 +1661,8 @@ interface HoursStatusProps {
|
|
|
1678
1661
|
/** @internal */
|
|
1679
1662
|
parentData?: {
|
|
1680
1663
|
field: string;
|
|
1681
|
-
hours
|
|
1682
|
-
timezone
|
|
1664
|
+
hours?: HoursType;
|
|
1665
|
+
timezone?: string;
|
|
1683
1666
|
};
|
|
1684
1667
|
}
|
|
1685
1668
|
declare const HoursStatus: ComponentConfig<HoursStatusProps>;
|
|
@@ -1741,11 +1724,13 @@ interface PhoneProps {
|
|
|
1741
1724
|
includePhoneHyperlink: boolean;
|
|
1742
1725
|
/** Whether to include the phone icon, defaults to true */
|
|
1743
1726
|
includeIcon?: boolean;
|
|
1727
|
+
/** The color applied to both the phone icon background and the phone link. */
|
|
1728
|
+
color?: ThemeColor;
|
|
1744
1729
|
};
|
|
1745
1730
|
/** @internal */
|
|
1746
1731
|
parentData?: {
|
|
1747
1732
|
field: string;
|
|
1748
|
-
phoneNumber
|
|
1733
|
+
phoneNumber?: string;
|
|
1749
1734
|
};
|
|
1750
1735
|
}
|
|
1751
1736
|
declare const Phone: ComponentConfig<{
|
|
@@ -1769,7 +1754,7 @@ type BasicCTAProps = {
|
|
|
1769
1754
|
variant: CTAVariant;
|
|
1770
1755
|
/** The image to use if the CTA is set to preset image */
|
|
1771
1756
|
presetImage?: PresetImageType;
|
|
1772
|
-
color?:
|
|
1757
|
+
color?: ThemeColor;
|
|
1773
1758
|
};
|
|
1774
1759
|
interface CTAGroupProps {
|
|
1775
1760
|
buttons: BasicCTAProps[];
|
|
@@ -1787,7 +1772,7 @@ type TextProps = {
|
|
|
1787
1772
|
/** The size of the text. */
|
|
1788
1773
|
variant: BodyProps["variant"];
|
|
1789
1774
|
/** Optional text color override. */
|
|
1790
|
-
color?:
|
|
1775
|
+
color?: ThemeColor;
|
|
1791
1776
|
/** Optional font style override. */
|
|
1792
1777
|
fontStyle: "regular" | "bold" | "italic";
|
|
1793
1778
|
};
|
|
@@ -2473,10 +2458,19 @@ declare const AdvancedCoreInfoCategory: (keyof AdvancedCoreInfoCategoryProps)[];
|
|
|
2473
2458
|
|
|
2474
2459
|
interface DirectoryStyles {
|
|
2475
2460
|
/**
|
|
2476
|
-
* The
|
|
2461
|
+
* The background color for the directory page heading area.
|
|
2477
2462
|
* @defaultValue Background Color 1
|
|
2478
2463
|
*/
|
|
2479
|
-
backgroundColor
|
|
2464
|
+
backgroundColor: ThemeColor;
|
|
2465
|
+
/**
|
|
2466
|
+
* The background color for the directory list area.
|
|
2467
|
+
* @defaultValue Background Color 1
|
|
2468
|
+
*/
|
|
2469
|
+
listBackgroundColor: ThemeColor;
|
|
2470
|
+
/**
|
|
2471
|
+
* The color of links in the directory list layout.
|
|
2472
|
+
*/
|
|
2473
|
+
linkColor?: ThemeColor;
|
|
2480
2474
|
}
|
|
2481
2475
|
interface DirectoryProps {
|
|
2482
2476
|
/**
|
|
@@ -2580,7 +2574,7 @@ interface LocatorResultCardProps {
|
|
|
2580
2574
|
* The color applied to the primary heading text
|
|
2581
2575
|
* @defaultValue inherited from theme
|
|
2582
2576
|
*/
|
|
2583
|
-
color?:
|
|
2577
|
+
color?: ThemeColor;
|
|
2584
2578
|
};
|
|
2585
2579
|
/** Settings for the secondary heading of the card */
|
|
2586
2580
|
secondaryHeading: {
|
|
@@ -2610,6 +2604,8 @@ interface LocatorResultCardProps {
|
|
|
2610
2604
|
};
|
|
2611
2605
|
/** Whether to show icons for certain fields */
|
|
2612
2606
|
icons: boolean;
|
|
2607
|
+
/** The accent color used for icon backgrounds and contact/action links. */
|
|
2608
|
+
accentColor?: ThemeColor;
|
|
2613
2609
|
/** Settings for the hours block */
|
|
2614
2610
|
hours: {
|
|
2615
2611
|
/** The field from the data to use for the hours */
|
|
@@ -2753,7 +2749,7 @@ interface LocatorProps {
|
|
|
2753
2749
|
iconName?: string;
|
|
2754
2750
|
};
|
|
2755
2751
|
/** The color applied to the pin. */
|
|
2756
|
-
pinColor?:
|
|
2752
|
+
pinColor?: ThemeColor;
|
|
2757
2753
|
}>;
|
|
2758
2754
|
/**
|
|
2759
2755
|
* Configuration for the filters available in the locator search experience.
|
|
@@ -2770,6 +2766,8 @@ interface LocatorProps {
|
|
|
2770
2766
|
* @defaultValue false
|
|
2771
2767
|
*/
|
|
2772
2768
|
showDistanceOptions: boolean;
|
|
2769
|
+
/** Accent color for filter button and icons. */
|
|
2770
|
+
accentColor?: ThemeColor;
|
|
2773
2771
|
/** Which fields are facetable in the search experience */
|
|
2774
2772
|
facetFields?: DynamicOptionsSelectorType<string>;
|
|
2775
2773
|
};
|
|
@@ -2791,7 +2789,7 @@ interface LocatorProps {
|
|
|
2791
2789
|
* The color applied to the locator page title.
|
|
2792
2790
|
* @defaultValue inherited from theme
|
|
2793
2791
|
*/
|
|
2794
|
-
color?:
|
|
2792
|
+
color?: ThemeColor;
|
|
2795
2793
|
};
|
|
2796
2794
|
/**
|
|
2797
2795
|
* Props to customize the locator result card component.
|
|
@@ -2904,13 +2902,26 @@ interface ExpandedFooterData {
|
|
|
2904
2902
|
* expandedFooter: true uses multiple columns of expandedFooterLinks.
|
|
2905
2903
|
*/
|
|
2906
2904
|
expandedFooter: boolean;
|
|
2905
|
+
/** Whether to show the logo in the primary footer. */
|
|
2906
|
+
showLogo: boolean;
|
|
2907
|
+
/** Whether to show social links in the primary footer. */
|
|
2908
|
+
showSocialLinks: boolean;
|
|
2909
|
+
/** Whether to show utility images in the primary footer. */
|
|
2910
|
+
showUtilityImages: boolean;
|
|
2911
|
+
};
|
|
2912
|
+
/** Content for the secondary footer bar. */
|
|
2913
|
+
secondaryFooter: {
|
|
2914
|
+
/** Whether to show the secondary footer. */
|
|
2915
|
+
show: boolean;
|
|
2907
2916
|
};
|
|
2908
2917
|
}
|
|
2909
2918
|
interface ExpandedFooterStyles {
|
|
2910
2919
|
/** Styling for the primary footer bar. */
|
|
2911
2920
|
primaryFooter: {
|
|
2912
|
-
backgroundColor?:
|
|
2921
|
+
backgroundColor?: ThemeColor;
|
|
2913
2922
|
linksPosition: "left" | "right";
|
|
2923
|
+
desktopContentAlignment: "left" | "center" | "right";
|
|
2924
|
+
mobileContentAlignment: "left" | "center" | "right";
|
|
2914
2925
|
};
|
|
2915
2926
|
/** The maximum width of the footer. */
|
|
2916
2927
|
maxWidth: PageSectionProps["maxWidth"];
|
|
@@ -2945,8 +2956,9 @@ interface ExpandedFooterProps {
|
|
|
2945
2956
|
ignoreLocaleWarning?: string[];
|
|
2946
2957
|
}
|
|
2947
2958
|
/**
|
|
2948
|
-
* The Expanded Footer is a comprehensive, two-tiered site-wide component for large websites.
|
|
2949
|
-
*
|
|
2959
|
+
* The Expanded Footer is a comprehensive, two-tiered site-wide component for large websites.
|
|
2960
|
+
* 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.
|
|
2961
|
+
* It also includes an optional secondary sub-footer for copyright notices and legal links.
|
|
2950
2962
|
*/
|
|
2951
2963
|
declare const ExpandedFooter: ComponentConfig<{
|
|
2952
2964
|
props: ExpandedFooterProps;
|
|
@@ -3135,7 +3147,11 @@ type AboutSectionProps = {
|
|
|
3135
3147
|
* The background color of the section.
|
|
3136
3148
|
* @defaultValue Background Color 2
|
|
3137
3149
|
*/
|
|
3138
|
-
backgroundColor?:
|
|
3150
|
+
backgroundColor?: ThemeColor;
|
|
3151
|
+
/**
|
|
3152
|
+
* The read more/read less button color.
|
|
3153
|
+
*/
|
|
3154
|
+
readMoreButtonColor?: ThemeColor;
|
|
3139
3155
|
/**
|
|
3140
3156
|
* If 'true', the sidebar with additional details is shown; if 'false', it's hidden.
|
|
3141
3157
|
* @defaultValue true
|
|
@@ -3170,12 +3186,12 @@ interface BannerStyles {
|
|
|
3170
3186
|
* The background color of the section.
|
|
3171
3187
|
* @defaultValue Background Color 6
|
|
3172
3188
|
*/
|
|
3173
|
-
backgroundColor?:
|
|
3189
|
+
backgroundColor?: ThemeColor;
|
|
3174
3190
|
/**
|
|
3175
3191
|
* Optional text color for the banner text.
|
|
3176
3192
|
* If not set, it will default to a color that contrasts with the background color.
|
|
3177
3193
|
*/
|
|
3178
|
-
textColor?:
|
|
3194
|
+
textColor?: ThemeColor;
|
|
3179
3195
|
/**
|
|
3180
3196
|
* The horizontal alignment of the text.
|
|
3181
3197
|
* @defaultValue center
|
|
@@ -3229,7 +3245,11 @@ interface BreadcrumbsStyles {
|
|
|
3229
3245
|
* The background color of the section.
|
|
3230
3246
|
* @defaultValue Background Color 1
|
|
3231
3247
|
*/
|
|
3232
|
-
backgroundColor?:
|
|
3248
|
+
backgroundColor?: ThemeColor;
|
|
3249
|
+
/**
|
|
3250
|
+
* The link color of breadcrumbs.
|
|
3251
|
+
*/
|
|
3252
|
+
linkColor?: ThemeColor;
|
|
3233
3253
|
/**
|
|
3234
3254
|
* Whether to show the current page's link in the breadcrumb trail (last link).
|
|
3235
3255
|
* @defaultValue true
|
|
@@ -3275,7 +3295,7 @@ interface CoreInfoStyles {
|
|
|
3275
3295
|
* The background color of the section.
|
|
3276
3296
|
* @defaultValue `Background Color 1`
|
|
3277
3297
|
*/
|
|
3278
|
-
backgroundColor?:
|
|
3298
|
+
backgroundColor?: ThemeColor;
|
|
3279
3299
|
}
|
|
3280
3300
|
interface CoreInfoSectionProps {
|
|
3281
3301
|
/**
|
|
@@ -3327,7 +3347,7 @@ interface EventSectionProps {
|
|
|
3327
3347
|
* The background color of the section.
|
|
3328
3348
|
* @defaultValue Background Color 3
|
|
3329
3349
|
*/
|
|
3330
|
-
backgroundColor?:
|
|
3350
|
+
backgroundColor?: ThemeColor;
|
|
3331
3351
|
/**
|
|
3332
3352
|
* Whether to show the section heading.
|
|
3333
3353
|
* @defaultValue true
|
|
@@ -3371,7 +3391,7 @@ interface HeroStyles {
|
|
|
3371
3391
|
* The background color for the featured content (spotlight variant).
|
|
3372
3392
|
* @defaultValue Background Color 1
|
|
3373
3393
|
*/
|
|
3374
|
-
backgroundColor?:
|
|
3394
|
+
backgroundColor?: ThemeColor;
|
|
3375
3395
|
/**
|
|
3376
3396
|
* Image Height for the hero image with Immersive or Spotlight variant
|
|
3377
3397
|
* Minimum height: content height + Page Section Top/Bottom Padding
|
|
@@ -3418,6 +3438,10 @@ interface HeroStyles {
|
|
|
3418
3438
|
* @defaultValue true
|
|
3419
3439
|
*/
|
|
3420
3440
|
showAverageReview: boolean;
|
|
3441
|
+
/**
|
|
3442
|
+
* The color applied to review stars when average review is shown.
|
|
3443
|
+
*/
|
|
3444
|
+
reviewStarsColor?: ThemeColor;
|
|
3421
3445
|
/**
|
|
3422
3446
|
* Whether to show the primary CTA.
|
|
3423
3447
|
* @defaultValue true
|
|
@@ -3481,7 +3505,7 @@ interface InsightSectionProps {
|
|
|
3481
3505
|
* The background color for the entire section.
|
|
3482
3506
|
* @defaultValue Background Color 2
|
|
3483
3507
|
*/
|
|
3484
|
-
backgroundColor?:
|
|
3508
|
+
backgroundColor?: ThemeColor;
|
|
3485
3509
|
/**
|
|
3486
3510
|
* Whether to show the section heading.
|
|
3487
3511
|
* @defaultValue true
|
|
@@ -3520,7 +3544,7 @@ interface NearbyLocationsSectionProps {
|
|
|
3520
3544
|
* The background color for the entire section.
|
|
3521
3545
|
* @defaultValue Background Color 1
|
|
3522
3546
|
*/
|
|
3523
|
-
backgroundColor?:
|
|
3547
|
+
backgroundColor?: ThemeColor;
|
|
3524
3548
|
/**
|
|
3525
3549
|
* Whether to show the section heading.
|
|
3526
3550
|
* @defaultValue true
|
|
@@ -3561,7 +3585,7 @@ interface ProductSectionProps {
|
|
|
3561
3585
|
* The background color for the entire section.
|
|
3562
3586
|
* @defaultValue Background Color 2
|
|
3563
3587
|
*/
|
|
3564
|
-
backgroundColor?:
|
|
3588
|
+
backgroundColor?: ThemeColor;
|
|
3565
3589
|
/**
|
|
3566
3590
|
* The variant of the product cards.
|
|
3567
3591
|
* @defaultValue Immersive
|
|
@@ -3622,7 +3646,7 @@ interface PromoStyles {
|
|
|
3622
3646
|
* The background color for the entire section.
|
|
3623
3647
|
* @defaultValue Background Color 1
|
|
3624
3648
|
*/
|
|
3625
|
-
backgroundColor?:
|
|
3649
|
+
backgroundColor?: ThemeColor;
|
|
3626
3650
|
/**
|
|
3627
3651
|
* Positions the media to the left or right of the promo content on desktop (classic and compact variants).
|
|
3628
3652
|
* @defaultValue right
|
|
@@ -3707,7 +3731,7 @@ interface PhotoGalleryStyles {
|
|
|
3707
3731
|
* The background color for the entire section, selected from the theme.
|
|
3708
3732
|
* @defaultValue Background Color 1
|
|
3709
3733
|
*/
|
|
3710
|
-
backgroundColor?:
|
|
3734
|
+
backgroundColor?: ThemeColor;
|
|
3711
3735
|
/**
|
|
3712
3736
|
* The layout style for displaying images in the gallery.
|
|
3713
3737
|
* @defaultValue "gallery"
|
|
@@ -3749,7 +3773,7 @@ interface FAQStyles {
|
|
|
3749
3773
|
* The background color of the section.
|
|
3750
3774
|
* @defaultValue Background Color 3
|
|
3751
3775
|
*/
|
|
3752
|
-
backgroundColor?:
|
|
3776
|
+
backgroundColor?: ThemeColor;
|
|
3753
3777
|
/**
|
|
3754
3778
|
* Whether to show the section heading.
|
|
3755
3779
|
* @defaultValue true
|
|
@@ -3800,7 +3824,11 @@ interface ReviewsSectionProps {
|
|
|
3800
3824
|
* The background color of the section.
|
|
3801
3825
|
* @defaultValue Background Color 1
|
|
3802
3826
|
*/
|
|
3803
|
-
backgroundColor?:
|
|
3827
|
+
backgroundColor?: ThemeColor;
|
|
3828
|
+
/**
|
|
3829
|
+
* Accent color used for show more/show less and pagination controls.
|
|
3830
|
+
*/
|
|
3831
|
+
accentColor?: ThemeColor;
|
|
3804
3832
|
/**
|
|
3805
3833
|
* Whether to show the section heading.
|
|
3806
3834
|
* @defaultValue true
|
|
@@ -3839,7 +3867,7 @@ interface TestimonialSectionProps {
|
|
|
3839
3867
|
* The background color of the section.
|
|
3840
3868
|
* @defaultValue Background Color 2
|
|
3841
3869
|
*/
|
|
3842
|
-
backgroundColor?:
|
|
3870
|
+
backgroundColor?: ThemeColor;
|
|
3843
3871
|
/**
|
|
3844
3872
|
* Whether to show the section heading.
|
|
3845
3873
|
* @defaultValue true
|
|
@@ -3879,7 +3907,7 @@ interface TeamSectionProps {
|
|
|
3879
3907
|
* The background color of the section.
|
|
3880
3908
|
* @defaultValue Background Color 3
|
|
3881
3909
|
*/
|
|
3882
|
-
backgroundColor?:
|
|
3910
|
+
backgroundColor?: ThemeColor;
|
|
3883
3911
|
/**
|
|
3884
3912
|
* Whether to show the section heading.
|
|
3885
3913
|
* @defaultValue true
|
|
@@ -3921,7 +3949,7 @@ interface StaticMapStyles {
|
|
|
3921
3949
|
* The background color of the section.
|
|
3922
3950
|
* @defaultValue Background Color 1
|
|
3923
3951
|
*/
|
|
3924
|
-
backgroundColor?:
|
|
3952
|
+
backgroundColor?: ThemeColor;
|
|
3925
3953
|
/**
|
|
3926
3954
|
* The style of the map to be displayed.
|
|
3927
3955
|
* @defaultValue Default (streets-v12)
|
|
@@ -3963,7 +3991,7 @@ interface VideoSectionProps {
|
|
|
3963
3991
|
* The background color for the entire section, selected from the theme.
|
|
3964
3992
|
* @defaultValue Background Color 1
|
|
3965
3993
|
*/
|
|
3966
|
-
backgroundColor?:
|
|
3994
|
+
backgroundColor?: ThemeColor;
|
|
3967
3995
|
};
|
|
3968
3996
|
slots: {
|
|
3969
3997
|
SectionHeadingSlot: Slot;
|
|
@@ -3988,12 +4016,16 @@ interface ProfessionalHeroStyles {
|
|
|
3988
4016
|
* The background color for the section.
|
|
3989
4017
|
* @defaultValue Background Color 1
|
|
3990
4018
|
*/
|
|
3991
|
-
backgroundColor?:
|
|
4019
|
+
backgroundColor?: ThemeColor;
|
|
3992
4020
|
/**
|
|
3993
4021
|
* If 'true', displays the entity's average review rating.
|
|
3994
4022
|
* @defaultValue true
|
|
3995
4023
|
*/
|
|
3996
4024
|
showAverageReview: boolean;
|
|
4025
|
+
/**
|
|
4026
|
+
* The color applied to review stars when average review is shown.
|
|
4027
|
+
*/
|
|
4028
|
+
reviewStarsColor?: ThemeColor;
|
|
3997
4029
|
/**
|
|
3998
4030
|
* Whether to show the hero image.
|
|
3999
4031
|
* @defaultValue true
|
|
@@ -4920,7 +4952,7 @@ interface FooterProps {
|
|
|
4920
4952
|
* The background color for the entire footer section.
|
|
4921
4953
|
* @defaultValue Background Color 1
|
|
4922
4954
|
*/
|
|
4923
|
-
backgroundColor?:
|
|
4955
|
+
backgroundColor?: ThemeColor;
|
|
4924
4956
|
/** @internal */
|
|
4925
4957
|
analytics: {
|
|
4926
4958
|
scope?: string;
|
|
@@ -5052,6 +5084,7 @@ interface FooterSocialLinksSlotProps {
|
|
|
5052
5084
|
styles?: {
|
|
5053
5085
|
filledBackground?: boolean;
|
|
5054
5086
|
mobileAlignment?: "left" | "center";
|
|
5087
|
+
iconColor?: ThemeColor;
|
|
5055
5088
|
};
|
|
5056
5089
|
}
|
|
5057
5090
|
declare const FooterSocialLinksSlot: ComponentConfig<{
|
|
@@ -5131,7 +5164,7 @@ type ProductCardProps = {
|
|
|
5131
5164
|
/** The background color of each individual card
|
|
5132
5165
|
* @defaultValue Background Color 1
|
|
5133
5166
|
*/
|
|
5134
|
-
backgroundColor?:
|
|
5167
|
+
backgroundColor?: ThemeColor;
|
|
5135
5168
|
};
|
|
5136
5169
|
/** @internal */
|
|
5137
5170
|
slots: {
|
|
@@ -5186,7 +5219,7 @@ type EventCardProps = {
|
|
|
5186
5219
|
/** Styling for all the cards. */
|
|
5187
5220
|
styles: {
|
|
5188
5221
|
/** The background color of each event card */
|
|
5189
|
-
backgroundColor?:
|
|
5222
|
+
backgroundColor?: ThemeColor;
|
|
5190
5223
|
/** Whether to truncate the event description text */
|
|
5191
5224
|
truncateDescription: boolean;
|
|
5192
5225
|
};
|
|
@@ -5270,14 +5303,14 @@ type NearbyLocationCardsWrapperProps = {
|
|
|
5270
5303
|
/** Styling for the individual location cards. */
|
|
5271
5304
|
styles: {
|
|
5272
5305
|
/** The card background color. */
|
|
5273
|
-
backgroundColor?:
|
|
5306
|
+
backgroundColor?: ThemeColor;
|
|
5274
5307
|
/** The heading level for the card title. */
|
|
5275
5308
|
headingLevel?: HeadingLevel;
|
|
5276
5309
|
/**
|
|
5277
5310
|
* The color applied to the card title
|
|
5278
5311
|
* @defaultValue inherited from theme
|
|
5279
5312
|
*/
|
|
5280
|
-
color?:
|
|
5313
|
+
color?: ThemeColor;
|
|
5281
5314
|
/** Styling for the hours display on each card. */
|
|
5282
5315
|
hours: {
|
|
5283
5316
|
/** Whether to display the current status ("Open Now" or "Closed") */
|
|
@@ -5300,6 +5333,10 @@ type NearbyLocationCardsWrapperProps = {
|
|
|
5300
5333
|
* @defaultValue false
|
|
5301
5334
|
*/
|
|
5302
5335
|
phoneNumberLink: boolean;
|
|
5336
|
+
/**
|
|
5337
|
+
* The color applied to phone links (and icon if enabled) on each card.
|
|
5338
|
+
*/
|
|
5339
|
+
color?: ThemeColor;
|
|
5303
5340
|
};
|
|
5304
5341
|
/** Styling for the address on each card */
|
|
5305
5342
|
address?: {
|
|
@@ -5345,7 +5382,7 @@ type InsightCardProps = {
|
|
|
5345
5382
|
/** Styling for all the cards. */
|
|
5346
5383
|
styles: {
|
|
5347
5384
|
/** The background color of each insight card */
|
|
5348
|
-
backgroundColor?:
|
|
5385
|
+
backgroundColor?: ThemeColor;
|
|
5349
5386
|
};
|
|
5350
5387
|
/** @internal */
|
|
5351
5388
|
slots: {
|
|
@@ -5394,6 +5431,8 @@ interface PhotoGalleryWrapperProps {
|
|
|
5394
5431
|
styles: {
|
|
5395
5432
|
/** Styling options for the gallery images, such as aspect ratio. */
|
|
5396
5433
|
image: ImageStylingProps;
|
|
5434
|
+
/** Accent color used for carousel arrows and slide indicators. */
|
|
5435
|
+
accentColor?: ThemeColor;
|
|
5397
5436
|
/**
|
|
5398
5437
|
* Number of images to show in carousel variant at once, either 1, 2, or 3.
|
|
5399
5438
|
* In Mobile view, only 1 image is shown at a time regardless of this setting.
|
|
@@ -5416,7 +5455,7 @@ type FAQCardProps = {
|
|
|
5416
5455
|
styles: {
|
|
5417
5456
|
questionVariant: BodyProps["variant"];
|
|
5418
5457
|
answerVariant: BodyProps["variant"];
|
|
5419
|
-
answerColor?:
|
|
5458
|
+
answerColor?: ThemeColor;
|
|
5420
5459
|
};
|
|
5421
5460
|
/** @internal */
|
|
5422
5461
|
slots: {};
|
|
@@ -5443,7 +5482,7 @@ type TeamCardProps = {
|
|
|
5443
5482
|
/** Styling for all the cards. */
|
|
5444
5483
|
styles: {
|
|
5445
5484
|
/** The background color of each team card */
|
|
5446
|
-
backgroundColor?:
|
|
5485
|
+
backgroundColor?: ThemeColor;
|
|
5447
5486
|
};
|
|
5448
5487
|
/** @internal */
|
|
5449
5488
|
slots: {
|
|
@@ -5499,7 +5538,7 @@ type TestimonialCardProps = {
|
|
|
5499
5538
|
/** Styling for all the cards. */
|
|
5500
5539
|
styles: {
|
|
5501
5540
|
/** The background color of each testimonial card */
|
|
5502
|
-
backgroundColor?:
|
|
5541
|
+
backgroundColor?: ThemeColor;
|
|
5503
5542
|
};
|
|
5504
5543
|
/** @internal */
|
|
5505
5544
|
slots: {
|
|
@@ -5552,6 +5591,10 @@ interface FooterUtilityImagesSlotProps {
|
|
|
5552
5591
|
width?: number;
|
|
5553
5592
|
aspectRatio?: number;
|
|
5554
5593
|
};
|
|
5594
|
+
/** @internal */
|
|
5595
|
+
desktopContentAlignment?: "left" | "center" | "right";
|
|
5596
|
+
/** @internal */
|
|
5597
|
+
mobileContentAlignment?: "left" | "center" | "right";
|
|
5555
5598
|
}
|
|
5556
5599
|
declare const FooterUtilityImagesSlot: ComponentConfig<{
|
|
5557
5600
|
props: FooterUtilityImagesSlotProps;
|
|
@@ -5561,12 +5604,15 @@ interface FooterLinksSlotProps {
|
|
|
5561
5604
|
data: {
|
|
5562
5605
|
links: TranslatableCTA[];
|
|
5563
5606
|
};
|
|
5607
|
+
color?: ThemeColor;
|
|
5564
5608
|
/** @internal */
|
|
5565
5609
|
variant?: "primary" | "secondary";
|
|
5566
5610
|
/** @internal */
|
|
5567
5611
|
eventNamePrefix?: string;
|
|
5568
5612
|
/** @internal */
|
|
5569
|
-
|
|
5613
|
+
desktopContentAlignment?: "left" | "center" | "right";
|
|
5614
|
+
/** @internal */
|
|
5615
|
+
mobileContentAlignment?: "left" | "center" | "right";
|
|
5570
5616
|
}
|
|
5571
5617
|
declare const FooterLinksSlot: ComponentConfig<{
|
|
5572
5618
|
props: FooterLinksSlotProps;
|
|
@@ -5577,6 +5623,10 @@ interface FooterExpandedLinkSectionSlotProps {
|
|
|
5577
5623
|
label: YextEntityField<TranslatableString>;
|
|
5578
5624
|
links: TranslatableCTA[];
|
|
5579
5625
|
};
|
|
5626
|
+
styles?: {
|
|
5627
|
+
/** Color applied to section label and links. */
|
|
5628
|
+
color?: ThemeColor;
|
|
5629
|
+
};
|
|
5580
5630
|
/** @internal */
|
|
5581
5631
|
index?: number;
|
|
5582
5632
|
}
|
|
@@ -5591,6 +5641,13 @@ interface FooterExpandedLinksWrapperProps {
|
|
|
5591
5641
|
links: TranslatableCTA[];
|
|
5592
5642
|
}[];
|
|
5593
5643
|
};
|
|
5644
|
+
styles?: {
|
|
5645
|
+
color?: ThemeColor;
|
|
5646
|
+
};
|
|
5647
|
+
/** @internal */
|
|
5648
|
+
desktopContentAlignment?: "left" | "center" | "right";
|
|
5649
|
+
/** @internal */
|
|
5650
|
+
mobileContentAlignment?: "left" | "center" | "right";
|
|
5594
5651
|
}
|
|
5595
5652
|
declare const FooterExpandedLinksWrapper: ComponentConfig<{
|
|
5596
5653
|
props: FooterExpandedLinksWrapperProps;
|
|
@@ -5601,7 +5658,9 @@ interface CopyrightMessageSlotProps {
|
|
|
5601
5658
|
text: TranslatableString;
|
|
5602
5659
|
};
|
|
5603
5660
|
/** @internal */
|
|
5604
|
-
|
|
5661
|
+
desktopContentAlignment?: "left" | "center" | "right";
|
|
5662
|
+
/** @internal */
|
|
5663
|
+
mobileContentAlignment?: "left" | "center" | "right";
|
|
5605
5664
|
}
|
|
5606
5665
|
declare const defaultCopyrightMessageSlotProps: CopyrightMessageSlotProps;
|
|
5607
5666
|
declare const CopyrightMessageSlot: ComponentConfig<{
|
|
@@ -5609,21 +5668,15 @@ declare const CopyrightMessageSlot: ComponentConfig<{
|
|
|
5609
5668
|
}>;
|
|
5610
5669
|
|
|
5611
5670
|
interface SecondaryFooterSlotProps {
|
|
5612
|
-
/**
|
|
5613
|
-
* Data configuration for the secondary footer.
|
|
5614
|
-
* @propCategory Data Props
|
|
5615
|
-
*/
|
|
5616
|
-
data: {
|
|
5617
|
-
/** Whether to hide or show the secondary footer */
|
|
5618
|
-
show: boolean;
|
|
5619
|
-
};
|
|
5620
5671
|
/**
|
|
5621
5672
|
* Styling configuration for the secondary footer.
|
|
5622
5673
|
* @propCategory Style Props
|
|
5623
5674
|
*/
|
|
5624
5675
|
styles: {
|
|
5625
|
-
backgroundColor?:
|
|
5626
|
-
|
|
5676
|
+
backgroundColor?: ThemeColor;
|
|
5677
|
+
desktopContentAlignment: "left" | "center" | "right";
|
|
5678
|
+
mobileContentAlignment: "left" | "center" | "right";
|
|
5679
|
+
showLinks: boolean;
|
|
5627
5680
|
};
|
|
5628
5681
|
/** @internal */
|
|
5629
5682
|
slots: {
|
|
@@ -5640,11 +5693,16 @@ declare const SecondaryFooterSlot: ComponentConfig<{
|
|
|
5640
5693
|
props: SecondaryFooterSlotProps;
|
|
5641
5694
|
}>;
|
|
5642
5695
|
|
|
5696
|
+
type DirectoryChildReference = {
|
|
5697
|
+
childIndex: number;
|
|
5698
|
+
childId?: string;
|
|
5699
|
+
};
|
|
5700
|
+
|
|
5643
5701
|
type DirectoryCardProps = {
|
|
5644
5702
|
/** Styling for all the cards. */
|
|
5645
5703
|
styles: {
|
|
5646
5704
|
/** The background color of each directory card */
|
|
5647
|
-
backgroundColor?:
|
|
5705
|
+
backgroundColor?: ThemeColor;
|
|
5648
5706
|
};
|
|
5649
5707
|
/** @internal */
|
|
5650
5708
|
slots: {
|
|
@@ -5655,13 +5713,16 @@ type DirectoryCardProps = {
|
|
|
5655
5713
|
};
|
|
5656
5714
|
/** @internal */
|
|
5657
5715
|
parentData?: {
|
|
5658
|
-
|
|
5716
|
+
childRef: DirectoryChildReference;
|
|
5659
5717
|
};
|
|
5660
5718
|
/** @internal */
|
|
5661
5719
|
index?: number;
|
|
5662
5720
|
};
|
|
5663
5721
|
|
|
5664
5722
|
type DirectoryGridProps = {
|
|
5723
|
+
styles: {
|
|
5724
|
+
backgroundColor?: ThemeColor;
|
|
5725
|
+
};
|
|
5665
5726
|
slots: {
|
|
5666
5727
|
CardSlot: Slot;
|
|
5667
5728
|
};
|
|
@@ -5669,7 +5730,7 @@ type DirectoryGridProps = {
|
|
|
5669
5730
|
|
|
5670
5731
|
interface PrimaryHeaderSlotProps {
|
|
5671
5732
|
styles: {
|
|
5672
|
-
backgroundColor?:
|
|
5733
|
+
backgroundColor?: ThemeColor;
|
|
5673
5734
|
};
|
|
5674
5735
|
/** @internal values that come from the parent ExpandedHeader */
|
|
5675
5736
|
parentValues?: {
|
|
@@ -5697,7 +5758,7 @@ interface SecondaryHeaderSlotProps {
|
|
|
5697
5758
|
showLanguageDropdown: boolean;
|
|
5698
5759
|
};
|
|
5699
5760
|
styles: {
|
|
5700
|
-
backgroundColor?:
|
|
5761
|
+
backgroundColor?: ThemeColor;
|
|
5701
5762
|
};
|
|
5702
5763
|
parentStyles?: {
|
|
5703
5764
|
maxWidth?: PageSectionProps["maxWidth"];
|
|
@@ -5725,7 +5786,7 @@ type HeaderLinksProps = {
|
|
|
5725
5786
|
/**
|
|
5726
5787
|
* The color of the header links
|
|
5727
5788
|
*/
|
|
5728
|
-
color?:
|
|
5789
|
+
color?: ThemeColor;
|
|
5729
5790
|
/**
|
|
5730
5791
|
* The weight of the header links
|
|
5731
5792
|
*/
|
|
@@ -5892,7 +5953,7 @@ declare const SlotsCategoryComponents: {
|
|
|
5892
5953
|
fields?: _puckeditor_core.Fields<FooterExpandedLinksWrapperProps, {}> | undefined;
|
|
5893
5954
|
inline?: boolean;
|
|
5894
5955
|
resolveFields?: ((data: Omit<_puckeditor_core.ComponentData<FooterExpandedLinksWrapperProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, params: {
|
|
5895
|
-
changed: Partial<Record<
|
|
5956
|
+
changed: Partial<Record<keyof FooterExpandedLinksWrapperProps, boolean> & {
|
|
5896
5957
|
id: string;
|
|
5897
5958
|
}>;
|
|
5898
5959
|
fields: _puckeditor_core.Fields<FooterExpandedLinksWrapperProps, {}>;
|
|
@@ -5903,7 +5964,7 @@ declare const SlotsCategoryComponents: {
|
|
|
5903
5964
|
parent: _puckeditor_core.ComponentData | null;
|
|
5904
5965
|
}) => _puckeditor_core.Fields<FooterExpandedLinksWrapperProps, {}> | Promise<_puckeditor_core.Fields<FooterExpandedLinksWrapperProps, {}>>) | undefined;
|
|
5905
5966
|
resolveData?: ((data: Omit<_puckeditor_core.ComponentData<FooterExpandedLinksWrapperProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, params: {
|
|
5906
|
-
changed: Partial<Record<
|
|
5967
|
+
changed: Partial<Record<keyof FooterExpandedLinksWrapperProps, boolean> & {
|
|
5907
5968
|
id: string;
|
|
5908
5969
|
}>;
|
|
5909
5970
|
lastData: Omit<_puckeditor_core.ComponentData<FooterExpandedLinksWrapperProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type"> | null;
|
|
@@ -5916,7 +5977,7 @@ declare const SlotsCategoryComponents: {
|
|
|
5916
5977
|
props?: Partial<FooterExpandedLinksWrapperProps> | undefined;
|
|
5917
5978
|
}>) | undefined;
|
|
5918
5979
|
resolvePermissions?: ((data: Omit<_puckeditor_core.ComponentData<FooterExpandedLinksWrapperProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, params: {
|
|
5919
|
-
changed: Partial<Record<
|
|
5980
|
+
changed: Partial<Record<keyof FooterExpandedLinksWrapperProps, boolean> & {
|
|
5920
5981
|
id: string;
|
|
5921
5982
|
}>;
|
|
5922
5983
|
lastPermissions: Partial<_puckeditor_core.Permissions>;
|
|
@@ -7668,7 +7729,7 @@ declare const SlotsCategoryComponents: {
|
|
|
7668
7729
|
fields?: _puckeditor_core.Fields<DirectoryGridProps, {}> | undefined;
|
|
7669
7730
|
inline?: boolean;
|
|
7670
7731
|
resolveFields?: ((data: Omit<_puckeditor_core.ComponentData<DirectoryGridProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, params: {
|
|
7671
|
-
changed: Partial<Record<
|
|
7732
|
+
changed: Partial<Record<keyof DirectoryGridProps, boolean> & {
|
|
7672
7733
|
id: string;
|
|
7673
7734
|
}>;
|
|
7674
7735
|
fields: _puckeditor_core.Fields<DirectoryGridProps, {}>;
|
|
@@ -7679,7 +7740,7 @@ declare const SlotsCategoryComponents: {
|
|
|
7679
7740
|
parent: _puckeditor_core.ComponentData | null;
|
|
7680
7741
|
}) => _puckeditor_core.Fields<DirectoryGridProps, {}> | Promise<_puckeditor_core.Fields<DirectoryGridProps, {}>>) | undefined;
|
|
7681
7742
|
resolveData?: ((data: Omit<_puckeditor_core.ComponentData<DirectoryGridProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, params: {
|
|
7682
|
-
changed: Partial<Record<
|
|
7743
|
+
changed: Partial<Record<keyof DirectoryGridProps, boolean> & {
|
|
7683
7744
|
id: string;
|
|
7684
7745
|
}>;
|
|
7685
7746
|
lastData: Omit<_puckeditor_core.ComponentData<DirectoryGridProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type"> | null;
|
|
@@ -7692,7 +7753,7 @@ declare const SlotsCategoryComponents: {
|
|
|
7692
7753
|
props?: Partial<DirectoryGridProps> | undefined;
|
|
7693
7754
|
}>) | undefined;
|
|
7694
7755
|
resolvePermissions?: ((data: Omit<_puckeditor_core.ComponentData<DirectoryGridProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, params: {
|
|
7695
|
-
changed: Partial<Record<
|
|
7756
|
+
changed: Partial<Record<keyof DirectoryGridProps, boolean> & {
|
|
7696
7757
|
id: string;
|
|
7697
7758
|
}>;
|
|
7698
7759
|
lastPermissions: Partial<_puckeditor_core.Permissions>;
|
|
@@ -7865,7 +7926,7 @@ interface LocatorConfigProps extends LocatorCategoryProps, SlotsCategoryProps, D
|
|
|
7865
7926
|
declare const locatorConfig: Config<LocatorConfigProps>;
|
|
7866
7927
|
|
|
7867
7928
|
type SectionContainerProps = {
|
|
7868
|
-
background?:
|
|
7929
|
+
background?: ThemeColor;
|
|
7869
7930
|
sectionHeading: {
|
|
7870
7931
|
text: YextEntityField<TranslatableString>;
|
|
7871
7932
|
level: HeadingProps["level"];
|
|
@@ -7893,4 +7954,4 @@ declare const GTMBody: React__default.FC<{
|
|
|
7893
7954
|
children: React__default.ReactNode;
|
|
7894
7955
|
}>;
|
|
7895
7956
|
|
|
7896
|
-
export { AboutSection, type AboutSectionProps, Address, type AddressProps, AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, type AssetImageType, type AssetVideo, Background, type BackgroundProps, BackgroundProvider, type
|
|
7957
|
+
export { AboutSection, type AboutSectionProps, Address, type AddressProps, AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, type AssetImageType, type AssetVideo, Background, type BackgroundProps, BackgroundProvider, type BannerData, BannerSection, type BannerSectionProps, type BannerStyles, BasicSelector, Body, type BodyProps, BodyText, type BodyTextProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, CTAGroup, type CTAGroupProps, type CTAVariant, CTAWrapper, type CTAWrapperProps, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, CopyrightMessageSlot, type CopyrightMessageSlotProps, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryProps, type DirectoryStyles, type DynamicOption, type DynamicOptionValueTypes, DynamicOptionsSelector, type DynamicOptionsSelectorType, DynamicOptionsSingleSelector, type DynamicOptionsSingleSelectorType, Editor, Emails, type EmailsProps, EmbeddedFieldStringInputFromEntity, EmbeddedFieldStringInputFromOptions, type EnhancedTranslatableCTA, EntityField, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderProps, type ExpandedHeaderStyles, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, FOOD_DELIVERY_SERVICES, type FontRegistry, FontSizeSelector, type FoodDeliveryServiceType, Footer, FooterExpandedLinkSectionSlot, type FooterExpandedLinkSectionSlotProps, FooterExpandedLinksWrapper, type FooterExpandedLinksWrapperProps, FooterLinksSlot, type FooterLinksSlotProps, FooterLogoSlot, type FooterLogoSlotProps, type FooterProps, FooterSocialLinksSlot, type FooterSocialLinksSlotProps, FooterUtilityImagesSlot, type FooterUtilityImagesSlotProps, GTMBody, GetDirections, type GetDirectionsProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, HeadingText, type HeadingTextProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatus, HoursStatusAtom, type HoursStatusAtomProps, type HoursStatusProps, HoursTable, HoursTableAtom, type HoursTableAtomProps, type HoursTableProps, Image, type ImageContentData, type ImageProps, ImageWrapper, type ImageWrapperProps, type ImgSizesByBreakpoint, InsightCard, InsightCardsWrapper, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, KnowledgeGraphIcon, type LocalizedAssetImage, type Location, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, LocatorResultCard, type LocatorResultCardProps, type MainConfigProps, MapboxStaticMap, type MapboxStaticProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, NearbyLocationsSection, type NearbyLocationsSectionProps, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, Phone, PhoneAtom, type PhoneAtomProps, PhoneList, type PhoneListProps, type PhoneProps, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, ProfessionalHeroSection, type ProfessionalHeroSectionProps, type ProfessionalHeroStyles, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SecondaryFooterSlot, type SecondaryFooterSlotProps, SectionContainer, type SectionContainerProps, SlotsCategory, SlotsCategoryComponents, type SlotsCategoryProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, Text, TextList, type TextListProps, type TextProps, type ThemeColor, type ThemeConfig, ThemeOptions, Timestamp, TimestampAtom, type TimestampAtomProps, TimestampOption, type TimestampProps, Toggle, type TranslatableAssetImage, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, VideoAtom, type VideoAtomProps, type VideoProps, VideoSection, type VideoSectionProps, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, VisualEditorThemeClassSafelist, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, addHeadingAlignmentMigration, applyAnalytics, applyCertifiedFacts, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createDefaultThemeConfig, createSearchAnalyticsConfig, createSearchHeadlessConfig, deepMerge, defaultCopyrightMessageSlotProps, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getCanonicalUrl, getDefaultRTF, getDirectoryParents, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getPreferredDistanceUnit, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, injectTranslations, isLocalizedAssetImage, locatorConfig, mainConfig, migrate, migrationRegistry, msg, normalizeLink, normalizeSlug, pt, resolveComponentData, resolveDataFromParent, resolveLocalizedAssetImage, resolveUrlTemplate, resolveUrlTemplateOfChild, resolveYextEntityField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, toKilometers, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|