@yext/visual-editor 1.0.3 → 1.0.5
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 +116 -108
- package/dist/plugin/plugin.js +192 -88
- package/dist/style.css +1 -1
- package/dist/visual-editor.js +97660 -35817
- package/package.json +14 -15
- package/dist/index.d.cts +0 -6770
- package/dist/plugin/plugin.cjs +0 -533
- package/dist/visual-editor.cjs +0 -371
package/dist/index.d.ts
CHANGED
|
@@ -108,6 +108,7 @@ type StreamDocument = {
|
|
|
108
108
|
id?: string;
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
+
__certified_facts?: any;
|
|
111
112
|
__?: {
|
|
112
113
|
layout?: string;
|
|
113
114
|
theme?: string;
|
|
@@ -208,6 +209,12 @@ type AssetImageType = Omit<ImageType, "alternateText"> & {
|
|
|
208
209
|
alternateText?: TranslatableString;
|
|
209
210
|
assetImage?: ImageContentData;
|
|
210
211
|
};
|
|
212
|
+
type LocalizedAssetImage = {
|
|
213
|
+
hasLocalizedValue: "true";
|
|
214
|
+
} & {
|
|
215
|
+
[key: string]: AssetImageType | undefined;
|
|
216
|
+
};
|
|
217
|
+
type TranslatableAssetImage = AssetImageType | LocalizedAssetImage;
|
|
211
218
|
|
|
212
219
|
type Video$1 = {
|
|
213
220
|
/** The YouTube video URL */
|
|
@@ -241,6 +248,7 @@ type TranslatableCTA = Omit<CTA$1, "label" | "link"> & {
|
|
|
241
248
|
label: TranslatableString;
|
|
242
249
|
/** The link the for the CTA */
|
|
243
250
|
link: TranslatableString;
|
|
251
|
+
openInNewTab?: boolean;
|
|
244
252
|
};
|
|
245
253
|
/** Enhanced CTA options */
|
|
246
254
|
type EnhancedTranslatableCTA = TranslatableCTA & {
|
|
@@ -512,6 +520,10 @@ declare const ThemeOptions: {
|
|
|
512
520
|
label: MsgString;
|
|
513
521
|
value: string;
|
|
514
522
|
}[];
|
|
523
|
+
VERTICAL_POSITION: {
|
|
524
|
+
label: MsgString;
|
|
525
|
+
value: string;
|
|
526
|
+
}[];
|
|
515
527
|
JUSTIFY_CONTENT: {
|
|
516
528
|
label: MsgString;
|
|
517
529
|
value: string;
|
|
@@ -589,25 +601,19 @@ declare const fetchLocalesToPathsForEntity: ({ businessId, apiKey, contentEndpoi
|
|
|
589
601
|
streamDocument: StreamDocument;
|
|
590
602
|
}) => Promise<Record<string, string>>;
|
|
591
603
|
|
|
592
|
-
/**
|
|
593
|
-
* Fetch reviews for the given entity.
|
|
594
|
-
* @returns A JSON of the reviews data fetched from the endpoint.
|
|
595
|
-
*/
|
|
596
|
-
type FetchReviewsParams = {
|
|
597
|
-
businessId: number;
|
|
598
|
-
apiKey: string;
|
|
599
|
-
contentDeliveryAPIDomain: string;
|
|
600
|
-
entityId: number;
|
|
601
|
-
limit: number;
|
|
602
|
-
pageToken?: string;
|
|
603
|
-
};
|
|
604
|
-
declare const fetchReviewsForEntity: ({ businessId, apiKey, contentDeliveryAPIDomain, entityId, limit, pageToken, }: FetchReviewsParams) => Promise<any>;
|
|
605
|
-
|
|
606
604
|
declare const applyAnalytics: (document: Record<string, any>) => string | undefined;
|
|
607
605
|
declare const getAnalyticsScopeHash: (puckId: string) => string;
|
|
608
606
|
|
|
609
607
|
declare const applyHeaderScript: (document: Record<string, any>) => any;
|
|
610
608
|
|
|
609
|
+
/**
|
|
610
|
+
* Applies the brand certified facts script to the head of the page.
|
|
611
|
+
*
|
|
612
|
+
* @param document - The stream document that may contain certified facts data
|
|
613
|
+
* @returns The certified facts script HTML string, or undefined if not applicable
|
|
614
|
+
*/
|
|
615
|
+
declare const applyCertifiedFacts: (document: StreamDocument) => string | undefined;
|
|
616
|
+
|
|
611
617
|
declare const getCanonicalUrl: (data: Record<string, any>) => string;
|
|
612
618
|
|
|
613
619
|
declare const themeManagerTwMergeConfiguration: {
|
|
@@ -1193,6 +1199,7 @@ declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttribu
|
|
|
1193
1199
|
declare const buttonVariants: (props?: ({
|
|
1194
1200
|
variant?: "link" | "secondary" | "primary" | "directoryLink" | "headerFooterMainLink" | "headerFooterSecondaryLink" | null | undefined;
|
|
1195
1201
|
hasDarkBackground?: boolean | null | undefined;
|
|
1202
|
+
linkPadding?: "none" | "yOnly" | null | undefined;
|
|
1196
1203
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1197
1204
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
1198
1205
|
asChild?: boolean;
|
|
@@ -1214,6 +1221,12 @@ type CTAProps = {
|
|
|
1214
1221
|
onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
1215
1222
|
disabled?: boolean;
|
|
1216
1223
|
color?: BackgroundStyle;
|
|
1224
|
+
openInNewTab?: boolean;
|
|
1225
|
+
/**
|
|
1226
|
+
* When true and variant is "link", applies vertical padding (py-3) to the CTA.
|
|
1227
|
+
* @default false
|
|
1228
|
+
*/
|
|
1229
|
+
setPadding?: boolean;
|
|
1217
1230
|
};
|
|
1218
1231
|
/**
|
|
1219
1232
|
* The different visual variants for CTA buttons.
|
|
@@ -1235,6 +1248,7 @@ declare const headingVariants: (props?: ({
|
|
|
1235
1248
|
interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
|
|
1236
1249
|
level: HeadingLevel;
|
|
1237
1250
|
semanticLevelOverride?: HeadingLevel | "span";
|
|
1251
|
+
color?: BackgroundStyle;
|
|
1238
1252
|
}
|
|
1239
1253
|
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
1240
1254
|
|
|
@@ -1244,7 +1258,7 @@ interface HoursTableAtomProps extends Omit<HoursTableProps$1, "dayOfWeekNames" |
|
|
|
1244
1258
|
declare const HoursTableAtom: (props: HoursTableAtomProps) => react_jsx_runtime.JSX.Element;
|
|
1245
1259
|
|
|
1246
1260
|
interface ImageProps {
|
|
1247
|
-
image: ImageType | ComplexImageType |
|
|
1261
|
+
image: ImageType | ComplexImageType | TranslatableAssetImage;
|
|
1248
1262
|
aspectRatio?: number;
|
|
1249
1263
|
width?: number;
|
|
1250
1264
|
className?: string;
|
|
@@ -1390,9 +1404,9 @@ type VideoAtomProps = {
|
|
|
1390
1404
|
declare const VideoAtom: (props: VideoAtomProps) => react_jsx_runtime.JSX.Element;
|
|
1391
1405
|
|
|
1392
1406
|
declare const layoutVariants: (props?: ({
|
|
1393
|
-
gap?: "0" | "1" | "2" | "3" | "
|
|
1394
|
-
verticalPadding?: "0" | "1" | "2" | "3" | "
|
|
1395
|
-
horizontalPadding?: "0" | "1" | "2" | "3" | "
|
|
1407
|
+
gap?: "0" | "1" | "2" | "3" | "none" | "12" | "14" | "16" | "20" | "24" | "0.5" | "4" | "1.5" | "6" | "8" | "2.5" | "10" | "3.5" | "5" | "7" | "9" | "11" | null | undefined;
|
|
1408
|
+
verticalPadding?: "0" | "1" | "2" | "3" | "default" | "none" | "12" | "14" | "16" | "20" | "24" | "0.5" | "4" | "1.5" | "6" | "8" | "2.5" | "10" | "3.5" | "5" | "7" | "9" | "11" | null | undefined;
|
|
1409
|
+
horizontalPadding?: "0" | "1" | "2" | "3" | "none" | "12" | "14" | "16" | "20" | "24" | "0.5" | "4" | "1.5" | "6" | "8" | "2.5" | "10" | "3.5" | "5" | "7" | "9" | "11" | null | undefined;
|
|
1396
1410
|
columnFormatting?: "default" | "none" | "forceHorizontal" | null | undefined;
|
|
1397
1411
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1398
1412
|
interface layoutProps extends VariantProps<typeof layoutVariants> {
|
|
@@ -1526,6 +1540,7 @@ type HeadingTextProps = {
|
|
|
1526
1540
|
align: "left" | "center" | "right";
|
|
1527
1541
|
/** Optional override to render a different HTML tag instead of the one based on the level */
|
|
1528
1542
|
semanticLevelOverride?: HeadingLevel | "span";
|
|
1543
|
+
color?: BackgroundStyle;
|
|
1529
1544
|
};
|
|
1530
1545
|
/** @internal Controlled data from the parent section */
|
|
1531
1546
|
parentData?: {
|
|
@@ -1597,7 +1612,7 @@ interface ImageStylingProps {
|
|
|
1597
1612
|
interface ImageWrapperProps {
|
|
1598
1613
|
data: {
|
|
1599
1614
|
/** The image to display. */
|
|
1600
|
-
image: YextEntityField<ImageType | ComplexImageType |
|
|
1615
|
+
image: YextEntityField<ImageType | ComplexImageType | TranslatableAssetImage>;
|
|
1601
1616
|
link?: TranslatableString;
|
|
1602
1617
|
};
|
|
1603
1618
|
/** Size and aspect ratio of the image. */
|
|
@@ -1605,7 +1620,7 @@ interface ImageWrapperProps {
|
|
|
1605
1620
|
/** @internal Controlled data from the parent section. */
|
|
1606
1621
|
parentData?: {
|
|
1607
1622
|
field: string;
|
|
1608
|
-
image: ImageType | ComplexImageType |
|
|
1623
|
+
image: ImageType | ComplexImageType | TranslatableAssetImage | undefined;
|
|
1609
1624
|
};
|
|
1610
1625
|
/** Additional CSS classes to apply to the image. */
|
|
1611
1626
|
className?: string;
|
|
@@ -2497,7 +2512,7 @@ interface ExpandedFooterStyles {
|
|
|
2497
2512
|
/** Styling for the primary footer bar. */
|
|
2498
2513
|
primaryFooter: {
|
|
2499
2514
|
backgroundColor?: BackgroundStyle;
|
|
2500
|
-
|
|
2515
|
+
linksPosition: "left" | "right";
|
|
2501
2516
|
};
|
|
2502
2517
|
/** The maximum width of the footer. */
|
|
2503
2518
|
maxWidth: PageSectionProps["maxWidth"];
|
|
@@ -2541,7 +2556,7 @@ declare const ExpandedFooter: ComponentConfig<{
|
|
|
2541
2556
|
|
|
2542
2557
|
interface FooterLogoSlotProps {
|
|
2543
2558
|
data: {
|
|
2544
|
-
image: YextEntityField<AssetImageType>;
|
|
2559
|
+
image: YextEntityField<AssetImageType | TranslatableAssetImage>;
|
|
2545
2560
|
linkTarget?: string;
|
|
2546
2561
|
};
|
|
2547
2562
|
styles: {
|
|
@@ -2593,7 +2608,7 @@ interface FooterLinksSlotProps {
|
|
|
2593
2608
|
/** @internal */
|
|
2594
2609
|
eventNamePrefix?: string;
|
|
2595
2610
|
/** @internal */
|
|
2596
|
-
alignment?: "left" | "right";
|
|
2611
|
+
alignment?: "left" | "center" | "right";
|
|
2597
2612
|
}
|
|
2598
2613
|
declare const FooterLinksSlot: ComponentConfig<{
|
|
2599
2614
|
props: FooterLinksSlotProps;
|
|
@@ -2628,7 +2643,7 @@ interface CopyrightMessageSlotProps {
|
|
|
2628
2643
|
text: TranslatableString;
|
|
2629
2644
|
};
|
|
2630
2645
|
/** @internal */
|
|
2631
|
-
alignment?: "left" | "right";
|
|
2646
|
+
alignment?: "left" | "center" | "right";
|
|
2632
2647
|
}
|
|
2633
2648
|
declare const defaultCopyrightMessageSlotProps: CopyrightMessageSlotProps;
|
|
2634
2649
|
declare const CopyrightMessageSlot: ComponentConfig<{
|
|
@@ -2650,7 +2665,7 @@ interface SecondaryFooterSlotProps {
|
|
|
2650
2665
|
*/
|
|
2651
2666
|
styles: {
|
|
2652
2667
|
backgroundColor?: BackgroundStyle;
|
|
2653
|
-
|
|
2668
|
+
linksPosition: "left" | "center" | "right";
|
|
2654
2669
|
};
|
|
2655
2670
|
/** @internal */
|
|
2656
2671
|
slots: {
|
|
@@ -3035,7 +3050,7 @@ declare const EventSection: ComponentConfig<{
|
|
|
3035
3050
|
}>;
|
|
3036
3051
|
|
|
3037
3052
|
interface HeroData {
|
|
3038
|
-
backgroundImage: YextEntityField<ImageType | AssetImageType>;
|
|
3053
|
+
backgroundImage: YextEntityField<ImageType | AssetImageType | TranslatableAssetImage>;
|
|
3039
3054
|
}
|
|
3040
3055
|
interface HeroStyles {
|
|
3041
3056
|
/**
|
|
@@ -3237,18 +3252,44 @@ interface PromoData {
|
|
|
3237
3252
|
* @defaultValue 'image'
|
|
3238
3253
|
*/
|
|
3239
3254
|
media: "image" | "video";
|
|
3255
|
+
/**
|
|
3256
|
+
* The background image used by the immersive and spotlight variants.
|
|
3257
|
+
* @defaultValue Placeholder image.
|
|
3258
|
+
*/
|
|
3259
|
+
backgroundImage: YextEntityField<ImageType | AssetImageType | TranslatableAssetImage>;
|
|
3240
3260
|
}
|
|
3241
3261
|
interface PromoStyles {
|
|
3262
|
+
/**
|
|
3263
|
+
* The visual variant for the promo section.
|
|
3264
|
+
* @defaultValue classic
|
|
3265
|
+
*/
|
|
3266
|
+
variant: "classic" | "immersive" | "spotlight" | "compact";
|
|
3242
3267
|
/**
|
|
3243
3268
|
* The background color for the entire section.
|
|
3244
3269
|
* @defaultValue Background Color 1
|
|
3245
3270
|
*/
|
|
3246
3271
|
backgroundColor?: BackgroundStyle;
|
|
3247
3272
|
/**
|
|
3248
|
-
* Positions the
|
|
3249
|
-
* @defaultValue
|
|
3273
|
+
* Positions the media to the left or right of the promo content on desktop (classic and compact variants).
|
|
3274
|
+
* @defaultValue right
|
|
3275
|
+
*/
|
|
3276
|
+
desktopImagePosition: "left" | "right";
|
|
3277
|
+
/**
|
|
3278
|
+
* Positions the media to the top or bottom of the promo content on mobile (classic and compact variants).
|
|
3279
|
+
* @defaultValue top
|
|
3280
|
+
*/
|
|
3281
|
+
mobileImagePosition: "top" | "bottom";
|
|
3282
|
+
/**
|
|
3283
|
+
* Text content position and alignment.
|
|
3284
|
+
* @defaultValue left
|
|
3285
|
+
*/
|
|
3286
|
+
containerAlignment: "left" | "center" | "right";
|
|
3287
|
+
/**
|
|
3288
|
+
* Image Height for the promo image with Immersive or Spotlight variant
|
|
3289
|
+
* Minimum height: content height + Page Section Top/Bottom Padding
|
|
3290
|
+
* @default 500px
|
|
3250
3291
|
*/
|
|
3251
|
-
|
|
3292
|
+
imageHeight: number;
|
|
3252
3293
|
}
|
|
3253
3294
|
interface PromoSectionProps {
|
|
3254
3295
|
/**
|
|
@@ -3327,6 +3368,11 @@ interface FAQStyles {
|
|
|
3327
3368
|
backgroundColor?: BackgroundStyle;
|
|
3328
3369
|
}
|
|
3329
3370
|
interface FAQSectionProps {
|
|
3371
|
+
data: Omit<YextEntityField<FAQSectionType>, "constantValue"> & {
|
|
3372
|
+
constantValue: {
|
|
3373
|
+
id?: string;
|
|
3374
|
+
}[];
|
|
3375
|
+
};
|
|
3330
3376
|
/**
|
|
3331
3377
|
* This object contains properties for customizing the component's appearance.
|
|
3332
3378
|
* @propCategory Style Props
|
|
@@ -3334,7 +3380,7 @@ interface FAQSectionProps {
|
|
|
3334
3380
|
styles: FAQStyles;
|
|
3335
3381
|
slots: {
|
|
3336
3382
|
HeadingSlot: Slot;
|
|
3337
|
-
|
|
3383
|
+
CardSlot: Slot;
|
|
3338
3384
|
};
|
|
3339
3385
|
/** @internal */
|
|
3340
3386
|
analytics: {
|
|
@@ -4288,6 +4334,8 @@ type VideoProps = {
|
|
|
4288
4334
|
/** The embedded YouTube video */
|
|
4289
4335
|
assetVideo: AssetVideo | undefined;
|
|
4290
4336
|
};
|
|
4337
|
+
/** @internal */
|
|
4338
|
+
className?: string;
|
|
4291
4339
|
};
|
|
4292
4340
|
declare const Video: ComponentConfig<{
|
|
4293
4341
|
props: VideoProps;
|
|
@@ -4500,7 +4548,7 @@ interface PhotoGalleryWrapperProps {
|
|
|
4500
4548
|
* @defaultValue A list of 3 placeholder images.
|
|
4501
4549
|
*/
|
|
4502
4550
|
images: YextEntityField<ImageType[] | ComplexImageType[] | {
|
|
4503
|
-
assetImage: AssetImageType;
|
|
4551
|
+
assetImage: AssetImageType | TranslatableAssetImage;
|
|
4504
4552
|
}[]>;
|
|
4505
4553
|
};
|
|
4506
4554
|
styles: {
|
|
@@ -4509,14 +4557,19 @@ interface PhotoGalleryWrapperProps {
|
|
|
4509
4557
|
};
|
|
4510
4558
|
}
|
|
4511
4559
|
|
|
4512
|
-
type
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4560
|
+
type FAQCardProps = {
|
|
4561
|
+
data: {
|
|
4562
|
+
question: YextEntityField<TranslatableRichText>;
|
|
4563
|
+
answer: YextEntityField<TranslatableRichText>;
|
|
4564
|
+
};
|
|
4565
|
+
/** Styling for all the FAQ cards. */
|
|
4566
|
+
styles: {
|
|
4567
|
+
questionVariant: BodyProps["variant"];
|
|
4568
|
+
answerVariant: BodyProps["variant"];
|
|
4518
4569
|
};
|
|
4519
4570
|
/** @internal */
|
|
4571
|
+
slots: {};
|
|
4572
|
+
/** @internal */
|
|
4520
4573
|
parentData?: {
|
|
4521
4574
|
field: string;
|
|
4522
4575
|
faq: FAQStruct;
|
|
@@ -4628,6 +4681,7 @@ interface PrimaryHeaderSlotProps {
|
|
|
4628
4681
|
conditionalRender?: {
|
|
4629
4682
|
navContent: boolean;
|
|
4630
4683
|
CTAs: boolean;
|
|
4684
|
+
hasLogoImage?: boolean;
|
|
4631
4685
|
};
|
|
4632
4686
|
/** @internal */
|
|
4633
4687
|
slots: {
|
|
@@ -4676,8 +4730,7 @@ interface SlotsCategoryProps {
|
|
|
4676
4730
|
EmailsSlot: EmailsProps;
|
|
4677
4731
|
EventCard: EventCardProps;
|
|
4678
4732
|
EventCardsWrapper: EventCardsWrapperProps;
|
|
4679
|
-
|
|
4680
|
-
FAQSlot: FAQSlotProps;
|
|
4733
|
+
FAQCard: FAQCardProps;
|
|
4681
4734
|
FooterExpandedLinkSectionSlot: FooterExpandedLinkSectionSlotProps;
|
|
4682
4735
|
FooterExpandedLinksWrapper: FooterExpandedLinksWrapperProps;
|
|
4683
4736
|
FooterLinksSlot: FooterLinksSlotProps;
|
|
@@ -4710,93 +4763,48 @@ interface SlotsCategoryProps {
|
|
|
4710
4763
|
VideoSlot: VideoProps;
|
|
4711
4764
|
}
|
|
4712
4765
|
declare const SlotsCategoryComponents: {
|
|
4713
|
-
|
|
4766
|
+
FAQCard: {
|
|
4714
4767
|
permissions: {
|
|
4715
4768
|
delete: boolean;
|
|
4716
4769
|
drag: boolean;
|
|
4717
4770
|
duplicate: boolean;
|
|
4718
4771
|
insert: boolean;
|
|
4719
4772
|
};
|
|
4720
|
-
render: _measured_puck.PuckComponent<
|
|
4773
|
+
render: _measured_puck.PuckComponent<FAQCardProps>;
|
|
4721
4774
|
label?: string;
|
|
4722
|
-
defaultProps?:
|
|
4723
|
-
fields?: _measured_puck.Fields<
|
|
4775
|
+
defaultProps?: FAQCardProps | undefined;
|
|
4776
|
+
fields?: _measured_puck.Fields<FAQCardProps, {}> | undefined;
|
|
4724
4777
|
inline?: boolean;
|
|
4725
|
-
resolveFields?: ((data: Omit<_measured_puck.ComponentData<
|
|
4726
|
-
changed: Partial<Record<keyof
|
|
4778
|
+
resolveFields?: ((data: Omit<_measured_puck.ComponentData<FAQCardProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
4779
|
+
changed: Partial<Record<keyof FAQCardProps, boolean> & {
|
|
4727
4780
|
id: string;
|
|
4728
4781
|
}>;
|
|
4729
|
-
fields: _measured_puck.Fields<
|
|
4730
|
-
lastFields: _measured_puck.Fields<
|
|
4731
|
-
lastData: Omit<_measured_puck.ComponentData<
|
|
4782
|
+
fields: _measured_puck.Fields<FAQCardProps, {}>;
|
|
4783
|
+
lastFields: _measured_puck.Fields<FAQCardProps, {}>;
|
|
4784
|
+
lastData: Omit<_measured_puck.ComponentData<FAQCardProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
|
|
4732
4785
|
appState: _measured_puck.AppState;
|
|
4733
4786
|
parent: _measured_puck.ComponentData | null;
|
|
4734
|
-
}) => _measured_puck.Fields<
|
|
4735
|
-
resolveData?: ((data: Omit<_measured_puck.ComponentData<
|
|
4736
|
-
changed: Partial<Record<keyof
|
|
4787
|
+
}) => _measured_puck.Fields<FAQCardProps, {}> | Promise<_measured_puck.Fields<FAQCardProps, {}>>) | undefined;
|
|
4788
|
+
resolveData?: ((data: Omit<_measured_puck.ComponentData<FAQCardProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
4789
|
+
changed: Partial<Record<keyof FAQCardProps, boolean> & {
|
|
4737
4790
|
id: string;
|
|
4738
4791
|
}>;
|
|
4739
|
-
lastData: Omit<_measured_puck.ComponentData<
|
|
4792
|
+
lastData: Omit<_measured_puck.ComponentData<FAQCardProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
|
|
4740
4793
|
metadata: _measured_puck.Metadata;
|
|
4741
4794
|
trigger: _measured_puck.ResolveDataTrigger;
|
|
4742
|
-
}) => (Omit<Omit<_measured_puck.ComponentData<
|
|
4743
|
-
props?: Partial<
|
|
4744
|
-
}) | Promise<Omit<Omit<_measured_puck.ComponentData<
|
|
4745
|
-
props?: Partial<
|
|
4795
|
+
}) => (Omit<Omit<_measured_puck.ComponentData<FAQCardProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, "props"> & {
|
|
4796
|
+
props?: Partial<FAQCardProps> | undefined;
|
|
4797
|
+
}) | Promise<Omit<Omit<_measured_puck.ComponentData<FAQCardProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, "props"> & {
|
|
4798
|
+
props?: Partial<FAQCardProps> | undefined;
|
|
4746
4799
|
}>) | undefined;
|
|
4747
|
-
resolvePermissions?: ((data: Omit<_measured_puck.ComponentData<
|
|
4748
|
-
changed: Partial<Record<keyof
|
|
4800
|
+
resolvePermissions?: ((data: Omit<_measured_puck.ComponentData<FAQCardProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
4801
|
+
changed: Partial<Record<keyof FAQCardProps, boolean> & {
|
|
4749
4802
|
id: string;
|
|
4750
4803
|
}>;
|
|
4751
4804
|
lastPermissions: Partial<_measured_puck.Permissions>;
|
|
4752
4805
|
permissions: Partial<_measured_puck.Permissions>;
|
|
4753
4806
|
appState: _measured_puck.AppState;
|
|
4754
|
-
lastData: Omit<_measured_puck.ComponentData<
|
|
4755
|
-
}) => Promise<Partial<_measured_puck.Permissions>> | Partial<_measured_puck.Permissions>) | undefined;
|
|
4756
|
-
metadata?: _measured_puck.Metadata;
|
|
4757
|
-
};
|
|
4758
|
-
FAQSlot: {
|
|
4759
|
-
permissions: {
|
|
4760
|
-
delete: boolean;
|
|
4761
|
-
drag: boolean;
|
|
4762
|
-
duplicate: boolean;
|
|
4763
|
-
insert: boolean;
|
|
4764
|
-
};
|
|
4765
|
-
render: _measured_puck.PuckComponent<FAQSlotProps>;
|
|
4766
|
-
label?: string;
|
|
4767
|
-
defaultProps?: FAQSlotProps | undefined;
|
|
4768
|
-
fields?: _measured_puck.Fields<FAQSlotProps, {}> | undefined;
|
|
4769
|
-
inline?: boolean;
|
|
4770
|
-
resolveFields?: ((data: Omit<_measured_puck.ComponentData<FAQSlotProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
4771
|
-
changed: Partial<Record<keyof FAQSlotProps, boolean> & {
|
|
4772
|
-
id: string;
|
|
4773
|
-
}>;
|
|
4774
|
-
fields: _measured_puck.Fields<FAQSlotProps, {}>;
|
|
4775
|
-
lastFields: _measured_puck.Fields<FAQSlotProps, {}>;
|
|
4776
|
-
lastData: Omit<_measured_puck.ComponentData<FAQSlotProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
|
|
4777
|
-
appState: _measured_puck.AppState;
|
|
4778
|
-
parent: _measured_puck.ComponentData | null;
|
|
4779
|
-
}) => _measured_puck.Fields<FAQSlotProps, {}> | Promise<_measured_puck.Fields<FAQSlotProps, {}>>) | undefined;
|
|
4780
|
-
resolveData?: ((data: Omit<_measured_puck.ComponentData<FAQSlotProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
4781
|
-
changed: Partial<Record<keyof FAQSlotProps, boolean> & {
|
|
4782
|
-
id: string;
|
|
4783
|
-
}>;
|
|
4784
|
-
lastData: Omit<_measured_puck.ComponentData<FAQSlotProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
|
|
4785
|
-
metadata: _measured_puck.Metadata;
|
|
4786
|
-
trigger: _measured_puck.ResolveDataTrigger;
|
|
4787
|
-
}) => (Omit<Omit<_measured_puck.ComponentData<FAQSlotProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, "props"> & {
|
|
4788
|
-
props?: Partial<FAQSlotProps> | undefined;
|
|
4789
|
-
}) | Promise<Omit<Omit<_measured_puck.ComponentData<FAQSlotProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, "props"> & {
|
|
4790
|
-
props?: Partial<FAQSlotProps> | undefined;
|
|
4791
|
-
}>) | undefined;
|
|
4792
|
-
resolvePermissions?: ((data: Omit<_measured_puck.ComponentData<FAQSlotProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
4793
|
-
changed: Partial<Record<keyof FAQSlotProps, boolean> & {
|
|
4794
|
-
id: string;
|
|
4795
|
-
}>;
|
|
4796
|
-
lastPermissions: Partial<_measured_puck.Permissions>;
|
|
4797
|
-
permissions: Partial<_measured_puck.Permissions>;
|
|
4798
|
-
appState: _measured_puck.AppState;
|
|
4799
|
-
lastData: Omit<_measured_puck.ComponentData<FAQSlotProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
|
|
4807
|
+
lastData: Omit<_measured_puck.ComponentData<FAQCardProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
|
|
4800
4808
|
}) => Promise<Partial<_measured_puck.Permissions>> | Partial<_measured_puck.Permissions>) | undefined;
|
|
4801
4809
|
metadata?: _measured_puck.Metadata;
|
|
4802
4810
|
};
|
|
@@ -5983,7 +5991,7 @@ declare const SlotsCategoryComponents: {
|
|
|
5983
5991
|
fields?: _measured_puck.Fields<VideoProps, {}> | undefined;
|
|
5984
5992
|
inline?: boolean;
|
|
5985
5993
|
resolveFields?: ((data: Omit<_measured_puck.ComponentData<VideoProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
5986
|
-
changed: Partial<Record<
|
|
5994
|
+
changed: Partial<Record<keyof VideoProps, boolean> & {
|
|
5987
5995
|
id: string;
|
|
5988
5996
|
}>;
|
|
5989
5997
|
fields: _measured_puck.Fields<VideoProps, {}>;
|
|
@@ -5993,7 +6001,7 @@ declare const SlotsCategoryComponents: {
|
|
|
5993
6001
|
parent: _measured_puck.ComponentData | null;
|
|
5994
6002
|
}) => _measured_puck.Fields<VideoProps, {}> | Promise<_measured_puck.Fields<VideoProps, {}>>) | undefined;
|
|
5995
6003
|
resolveData?: ((data: Omit<_measured_puck.ComponentData<VideoProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
5996
|
-
changed: Partial<Record<
|
|
6004
|
+
changed: Partial<Record<keyof VideoProps, boolean> & {
|
|
5997
6005
|
id: string;
|
|
5998
6006
|
}>;
|
|
5999
6007
|
lastData: Omit<_measured_puck.ComponentData<VideoProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
|
|
@@ -6005,7 +6013,7 @@ declare const SlotsCategoryComponents: {
|
|
|
6005
6013
|
props?: Partial<VideoProps> | undefined;
|
|
6006
6014
|
}>) | undefined;
|
|
6007
6015
|
resolvePermissions?: ((data: Omit<_measured_puck.ComponentData<VideoProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
6008
|
-
changed: Partial<Record<
|
|
6016
|
+
changed: Partial<Record<keyof VideoProps, boolean> & {
|
|
6009
6017
|
id: string;
|
|
6010
6018
|
}>;
|
|
6011
6019
|
lastPermissions: Partial<_measured_puck.Permissions>;
|
|
@@ -6767,4 +6775,4 @@ declare const LocatorResultCard: React__default.MemoExoticComponent<({ result, r
|
|
|
6767
6775
|
declare function createDefaultThemeConfig(customFonts?: FontRegistry): ThemeConfig;
|
|
6768
6776
|
declare const defaultThemeConfig: ThemeConfig;
|
|
6769
6777
|
|
|
6770
|
-
export { Address, type AddressProps, AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, type AssetImageType, type AssetVideo, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, 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, 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 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, 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, TextList, type TextListProps, type ThemeConfig, ThemeOptions, Timestamp, TimestampAtom, type TimestampAtomProps, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, VideoAtom, type VideoAtomProps, type VideoProps, VideoSection, type VideoSectionProps, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createDefaultThemeConfig, createSearchAnalyticsConfig, createSearchHeadlessConfig, deepMerge, defaultCopyrightMessageSlotProps, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity,
|
|
6778
|
+
export { Address, type AddressProps, AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, type AssetImageType, type AssetVideo, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, 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, 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, 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, TextList, type TextListProps, 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, 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, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getCanonicalUrl, getDefaultRTF, getDirectoryParents, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveDataFromParent, resolvePageSetUrlTemplate, resolveUrlTemplateOfChild, resolveYextEntityField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|