@yext/visual-editor 0.0.39 → 0.0.41
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 +271 -67
- package/dist/index.d.ts +271 -67
- package/dist/plugin/debugger-BTQVKCwx-CLM67V3g.cjs +1 -0
- package/dist/plugin/debugger-BTQVKCwx-GDe30he8.js +293 -0
- package/dist/plugin/index-BZpbAcAA.js +99989 -0
- package/dist/plugin/index-DEZOlM5o.cjs +1344 -0
- package/dist/plugin/plugin.cjs +1 -296
- package/dist/plugin/plugin.js +2 -339
- package/dist/style.css +1 -1
- package/dist/visual-editor.cjs +159 -87
- package/dist/visual-editor.js +43466 -25197
- package/package.json +22 -4
package/dist/index.d.cts
CHANGED
|
@@ -2,9 +2,12 @@ import * as React$1 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 _measured_puck from '@measured/puck';
|
|
5
|
-
import { Field, CustomField, Fields, Config, ArrayField, BaseField,
|
|
5
|
+
import { Field, CustomField, Fields, Data, DefaultComponentProps, Config, DefaultRootProps, ComponentConfig, ArrayField, BaseField, NumberField, ObjectField } from '@measured/puck';
|
|
6
6
|
import { ClassValue } from 'clsx';
|
|
7
|
-
import
|
|
7
|
+
import * as _yext_search_headless_react from '@yext/search-headless-react';
|
|
8
|
+
import * as i18next from 'i18next';
|
|
9
|
+
import * as react_i18next from 'react-i18next';
|
|
10
|
+
import { ImageType, CTA as CTA$1, LinkType, HoursTableProps as HoursTableProps$1, ComplexImageType, HoursType, AddressType, DayOfWeekNames, Coordinate } from '@yext/pages-components';
|
|
8
11
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
9
12
|
import { VariantProps } from 'class-variance-authority';
|
|
10
13
|
import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
|
|
@@ -18,6 +21,7 @@ type YextSchemaField = {
|
|
|
18
21
|
children?: {
|
|
19
22
|
fields: YextSchemaField[];
|
|
20
23
|
};
|
|
24
|
+
optionFormat?: "OPTION_FORMAT_EXPANDED";
|
|
21
25
|
};
|
|
22
26
|
type YextFieldDefinition = {
|
|
23
27
|
name: string;
|
|
@@ -237,7 +241,7 @@ type EntityFieldTypesFilter$1 = {
|
|
|
237
241
|
directChildrenOf?: string;
|
|
238
242
|
};
|
|
239
243
|
type RenderEntityFieldFilter<T extends Record<string, any>> = EntityFieldTypesFilter$1 & EitherOrNeither<AllowList<T>, DisallowList<T>>;
|
|
240
|
-
type EntityFieldTypes = "type.string" | "type.image" | "type.hours" | "type.address" | "type.phone" | "type.coordinate" | "type.cta" | "type.faq_section" | "type.testimonials_section" | "type.products_section" | "type.insights_section" | "type.rich_text_v2" | "type.team_section" | "type.events_section" | "type.promo_section" | "type.hero_section" | `c_${string}`;
|
|
244
|
+
type EntityFieldTypes = "type.string" | "type.image" | "type.hours" | "type.address" | "type.phone" | "type.coordinate" | "type.cta" | "type.boolean" | "type.option" | "type.faq_section" | "type.testimonials_section" | "type.products_section" | "type.insights_section" | "type.rich_text_v2" | "type.team_section" | "type.events_section" | "type.promo_section" | "type.hero_section" | `c_${string}`;
|
|
241
245
|
|
|
242
246
|
type YextEntityField<T> = {
|
|
243
247
|
field: string;
|
|
@@ -351,11 +355,14 @@ declare function themeManagerCn(...inputs: ClassValue[]): string;
|
|
|
351
355
|
|
|
352
356
|
type FontRegistry = Record<string, FontSpecification>;
|
|
353
357
|
type FontSpecification = {
|
|
358
|
+
italics: boolean;
|
|
359
|
+
fallback: "sans-serif" | "serif" | "monospace" | "cursive";
|
|
360
|
+
} & ({
|
|
354
361
|
minWeight: number;
|
|
355
362
|
maxWeight: number;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
};
|
|
363
|
+
} | {
|
|
364
|
+
weights: number[];
|
|
365
|
+
});
|
|
359
366
|
declare const defaultFonts: FontRegistry;
|
|
360
367
|
declare const constructFontSelectOptions: (fonts: FontRegistry) => StyleSelectOption[];
|
|
361
368
|
type getFontWeightParams = {
|
|
@@ -376,7 +383,7 @@ type EditorProps$1 = {
|
|
|
376
383
|
tailwindConfig: TailwindConfig;
|
|
377
384
|
};
|
|
378
385
|
type VisualEditorProviderProps<T> = UniversalProps<T> & AllOrNothing<EditorProps$1>;
|
|
379
|
-
declare const VisualEditorProvider: <T
|
|
386
|
+
declare const VisualEditorProvider: <T extends Record<string, any>>({ templateProps, entityFields, tailwindConfig, children, }: VisualEditorProviderProps<T>) => react_jsx_runtime.JSX.Element;
|
|
380
387
|
|
|
381
388
|
/**
|
|
382
389
|
* Check that the string is a valid slug.
|
|
@@ -405,15 +412,64 @@ type RootConfig = {
|
|
|
405
412
|
};
|
|
406
413
|
declare function getPageMetadata(document: Record<string, any>): RootConfig;
|
|
407
414
|
|
|
408
|
-
declare const fetchNearbyLocations: ({
|
|
409
|
-
|
|
415
|
+
declare const fetchNearbyLocations: ({ businessId, apiKey, contentEndpointId, contentDeliveryAPIDomain, latitude, longitude, radiusMi, limit, }: {
|
|
416
|
+
businessId: string;
|
|
417
|
+
apiKey: string;
|
|
418
|
+
contentEndpointId: string;
|
|
419
|
+
contentDeliveryAPIDomain: string;
|
|
410
420
|
longitude: number;
|
|
411
421
|
latitude: number;
|
|
412
422
|
radiusMi: number;
|
|
413
423
|
limit: number;
|
|
414
|
-
entityType: string;
|
|
415
424
|
}) => Promise<Record<string, any>>;
|
|
416
425
|
|
|
426
|
+
/**
|
|
427
|
+
* Builds the search headless config for the template. Returns undefined if the config is not valid.
|
|
428
|
+
* @param document the entity document
|
|
429
|
+
* @param experienceKeyEnvVar can be provided via withPropOverrides for a hybrid developer
|
|
430
|
+
*/
|
|
431
|
+
declare const createSearchHeadlessConfig: (document: any, experienceKeyEnvVar?: string) => (_yext_search_headless_react.SearchConfigWithApiKey & {
|
|
432
|
+
headlessId?: string;
|
|
433
|
+
verticalKey?: string;
|
|
434
|
+
}) | undefined;
|
|
435
|
+
/**
|
|
436
|
+
* Builds the search analytics config for the template. Returns undefined if the config is not valid.
|
|
437
|
+
* @param document the entity document
|
|
438
|
+
* @param experienceKeyEnvVar can be provided via withPropOverrides for a hybrid developer
|
|
439
|
+
*/
|
|
440
|
+
declare const createSearchAnalyticsConfig: (document: any, experienceKeyEnvVar?: string) => {
|
|
441
|
+
businessId: any;
|
|
442
|
+
experienceKey: any;
|
|
443
|
+
experienceVersion: string;
|
|
444
|
+
region: any;
|
|
445
|
+
env: string;
|
|
446
|
+
} | undefined;
|
|
447
|
+
|
|
448
|
+
type MigrationAction = {
|
|
449
|
+
action: "removed";
|
|
450
|
+
} | {
|
|
451
|
+
action: "renamed";
|
|
452
|
+
newName: string;
|
|
453
|
+
} | {
|
|
454
|
+
action: "updated";
|
|
455
|
+
propTransformation: (oldProps: Record<string, any>) => Record<string, any>;
|
|
456
|
+
};
|
|
457
|
+
type Migration = Record<string, MigrationAction>;
|
|
458
|
+
type MigrationRegistry = Migration[];
|
|
459
|
+
interface RootProps extends DefaultRootProps {
|
|
460
|
+
props?: {
|
|
461
|
+
version?: number;
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
declare const migrate: (data: Data<DefaultComponentProps, RootProps>, migrationRegistry?: MigrationRegistry, config?: Config) => Data;
|
|
465
|
+
|
|
466
|
+
declare function withPropOverrides<P extends DefaultComponentProps>(base: ComponentConfig<P>, overrides: Partial<P>): ComponentConfig<P>;
|
|
467
|
+
|
|
468
|
+
declare const i18nComponentsInstance: i18next.i18n;
|
|
469
|
+
|
|
470
|
+
declare const i18nPlatformInstance: i18next.i18n;
|
|
471
|
+
declare const usePlatformTranslation: () => react_i18next.UseTranslationResponse<"visual-editor", undefined>;
|
|
472
|
+
|
|
417
473
|
type HeroSectionType = {
|
|
418
474
|
image?: ImageType;
|
|
419
475
|
primaryCta?: CTA$1;
|
|
@@ -431,7 +487,7 @@ type ProductSectionType = {
|
|
|
431
487
|
type ProductStruct = {
|
|
432
488
|
image?: ImageType;
|
|
433
489
|
name?: string;
|
|
434
|
-
description?: RTF2;
|
|
490
|
+
description?: RTF2 | string;
|
|
435
491
|
category?: string;
|
|
436
492
|
cta?: CTA$1;
|
|
437
493
|
};
|
|
@@ -442,7 +498,7 @@ type EventStruct = {
|
|
|
442
498
|
image?: ImageType;
|
|
443
499
|
title?: string;
|
|
444
500
|
dateTime?: string;
|
|
445
|
-
description?: RTF2;
|
|
501
|
+
description?: RTF2 | string;
|
|
446
502
|
cta?: CTA$1;
|
|
447
503
|
};
|
|
448
504
|
type FAQSectionType = {
|
|
@@ -450,13 +506,13 @@ type FAQSectionType = {
|
|
|
450
506
|
};
|
|
451
507
|
type FAQStruct = {
|
|
452
508
|
question: string;
|
|
453
|
-
answer: RTF2;
|
|
509
|
+
answer: RTF2 | string;
|
|
454
510
|
};
|
|
455
511
|
type TestimonialSectionType = {
|
|
456
512
|
testimonials: Array<TestimonialStruct>;
|
|
457
513
|
};
|
|
458
514
|
type TestimonialStruct = {
|
|
459
|
-
description?: RTF2;
|
|
515
|
+
description?: RTF2 | string;
|
|
460
516
|
contributorName?: string;
|
|
461
517
|
contributionDate?: string;
|
|
462
518
|
};
|
|
@@ -468,7 +524,7 @@ type InsightStruct = {
|
|
|
468
524
|
name?: string;
|
|
469
525
|
category?: string;
|
|
470
526
|
publishTime?: string;
|
|
471
|
-
description?: RTF2;
|
|
527
|
+
description?: RTF2 | string;
|
|
472
528
|
cta?: CTA$1;
|
|
473
529
|
};
|
|
474
530
|
type TeamSectionType = {
|
|
@@ -487,6 +543,72 @@ type RTF2 = {
|
|
|
487
543
|
json?: string;
|
|
488
544
|
};
|
|
489
545
|
|
|
546
|
+
type ComponentField = {
|
|
547
|
+
name: string;
|
|
548
|
+
type: StructEntityFieldTypes | EntityFieldTypes;
|
|
549
|
+
isList: boolean;
|
|
550
|
+
tooltipDescription: string;
|
|
551
|
+
altLanguageBehavior: "LANGUAGE_SPECIFIC" | "PRIMARY_ONLY" | "OVERRIDABLE";
|
|
552
|
+
};
|
|
553
|
+
declare const ComponentFields: {
|
|
554
|
+
readonly HeroSection: {
|
|
555
|
+
readonly name: "Hero Section";
|
|
556
|
+
readonly type: "type.hero_section";
|
|
557
|
+
readonly isList: false;
|
|
558
|
+
readonly tooltipDescription: "";
|
|
559
|
+
readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
|
|
560
|
+
};
|
|
561
|
+
readonly PromoSection: {
|
|
562
|
+
readonly name: "Promo Section";
|
|
563
|
+
readonly type: "type.promo_section";
|
|
564
|
+
readonly isList: false;
|
|
565
|
+
readonly tooltipDescription: "";
|
|
566
|
+
readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
|
|
567
|
+
};
|
|
568
|
+
readonly ProductSection: {
|
|
569
|
+
readonly name: "Product Section";
|
|
570
|
+
readonly type: "type.products_section";
|
|
571
|
+
readonly isList: false;
|
|
572
|
+
readonly tooltipDescription: "";
|
|
573
|
+
readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
|
|
574
|
+
};
|
|
575
|
+
readonly EventSection: {
|
|
576
|
+
readonly name: "Event Section";
|
|
577
|
+
readonly type: "type.events_section";
|
|
578
|
+
readonly isList: false;
|
|
579
|
+
readonly tooltipDescription: "";
|
|
580
|
+
readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
|
|
581
|
+
};
|
|
582
|
+
readonly FAQSection: {
|
|
583
|
+
readonly name: "FAQ Section";
|
|
584
|
+
readonly type: "type.faq_section";
|
|
585
|
+
readonly isList: false;
|
|
586
|
+
readonly tooltipDescription: "";
|
|
587
|
+
readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
|
|
588
|
+
};
|
|
589
|
+
readonly TestimonialSection: {
|
|
590
|
+
readonly name: "Testimonial Section";
|
|
591
|
+
readonly type: "type.testimonials_section";
|
|
592
|
+
readonly isList: false;
|
|
593
|
+
readonly tooltipDescription: "";
|
|
594
|
+
readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
|
|
595
|
+
};
|
|
596
|
+
readonly InsightSection: {
|
|
597
|
+
readonly name: "Insight Section";
|
|
598
|
+
readonly type: "type.insights_section";
|
|
599
|
+
readonly isList: false;
|
|
600
|
+
readonly tooltipDescription: "";
|
|
601
|
+
readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
|
|
602
|
+
};
|
|
603
|
+
readonly TeamSection: {
|
|
604
|
+
readonly name: "Team Section";
|
|
605
|
+
readonly type: "type.team_section";
|
|
606
|
+
readonly isList: false;
|
|
607
|
+
readonly tooltipDescription: "";
|
|
608
|
+
readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
|
|
490
612
|
type EditorProps = {
|
|
491
613
|
document: any;
|
|
492
614
|
componentRegistry: Map<string, Config<any>>;
|
|
@@ -571,6 +693,10 @@ type YextFieldConfig<Props = any> = YextArrayField<Props extends Record<string,
|
|
|
571
693
|
declare function YextField<T = any>(fieldName: string, config: YextFieldConfig<T>): Field<T>;
|
|
572
694
|
declare function YextField<T extends Record<string, any>, U = any>(fieldName: string, config: YextEntitySelectorField<T>): Field<YextEntityField<U>>;
|
|
573
695
|
|
|
696
|
+
declare const KnowledgeGraphIcon: ({ enabled }: {
|
|
697
|
+
enabled: boolean;
|
|
698
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
699
|
+
|
|
574
700
|
declare const bodyVariants: (props?: ({
|
|
575
701
|
variant?: "sm" | "lg" | "base" | null | undefined;
|
|
576
702
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
@@ -611,10 +737,15 @@ declare const headingVariants: (props?: ({
|
|
|
611
737
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
612
738
|
interface HeadingProps extends Omit<React$1.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
|
|
613
739
|
level: HeadingLevel;
|
|
614
|
-
semanticLevelOverride?:
|
|
740
|
+
semanticLevelOverride?: HeadingLevel | "span";
|
|
615
741
|
}
|
|
616
742
|
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
617
743
|
|
|
744
|
+
interface HoursTableAtomProps extends Omit<HoursTableProps$1, "dayOfWeekNames" | "intervalStringsBuilderFn"> {
|
|
745
|
+
className?: string;
|
|
746
|
+
}
|
|
747
|
+
declare const HoursTableAtom: (props: HoursTableAtomProps) => react_jsx_runtime.JSX.Element;
|
|
748
|
+
|
|
618
749
|
interface ImageProps {
|
|
619
750
|
image: ImageType | ComplexImageType;
|
|
620
751
|
layout: "auto" | "fixed";
|
|
@@ -635,6 +766,12 @@ type MaybeLinkProps = {
|
|
|
635
766
|
};
|
|
636
767
|
declare const MaybeLink: (props: MaybeLinkProps) => react_jsx_runtime.JSX.Element;
|
|
637
768
|
|
|
769
|
+
interface MaybeRTFProps extends Record<string, any> {
|
|
770
|
+
data: RTF2 | string | undefined;
|
|
771
|
+
bodyVariant?: BodyProps["variant"];
|
|
772
|
+
}
|
|
773
|
+
declare const MaybeRTF: ({ data, bodyVariant, ...props }: MaybeRTFProps) => react_jsx_runtime.JSX.Element | undefined;
|
|
774
|
+
|
|
638
775
|
declare const pageSectionVariants: (props?: ({
|
|
639
776
|
verticalPadding?: "default" | "sm" | "footer" | "header" | null | undefined;
|
|
640
777
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
@@ -649,6 +786,7 @@ declare const PageSection: React$1.ForwardRefExoticComponent<PageSectionProps &
|
|
|
649
786
|
type PhoneAtomProps = {
|
|
650
787
|
phoneNumber: string;
|
|
651
788
|
label?: string;
|
|
789
|
+
eventName?: string;
|
|
652
790
|
backgroundColor?: BackgroundStyle;
|
|
653
791
|
format: "domestic" | "international" | undefined;
|
|
654
792
|
includeHyperlink: boolean;
|
|
@@ -673,6 +811,17 @@ declare const wrapperVariants: (props?: ({
|
|
|
673
811
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
674
812
|
declare const VisibilityWrapper: React$1.FC<VisibilityWrapperProps>;
|
|
675
813
|
|
|
814
|
+
interface HoursStatusAtomProps {
|
|
815
|
+
hours: HoursType;
|
|
816
|
+
className?: string;
|
|
817
|
+
showCurrentStatus?: boolean;
|
|
818
|
+
showDayNames?: boolean;
|
|
819
|
+
timeFormat?: "12h" | "24h";
|
|
820
|
+
dayOfWeekFormat?: "short" | "long";
|
|
821
|
+
timezone?: string;
|
|
822
|
+
}
|
|
823
|
+
declare const HoursStatusAtom: ({ hours, className, showCurrentStatus, showDayNames, timeFormat, dayOfWeekFormat, timezone, }: HoursStatusAtomProps) => any;
|
|
824
|
+
|
|
676
825
|
declare enum TimestampOption {
|
|
677
826
|
DATE = "DATE",
|
|
678
827
|
DATE_TIME = "DATE_TIME",
|
|
@@ -689,51 +838,62 @@ type TimestampProps = {
|
|
|
689
838
|
declare function Timestamp({ date, option, endDate, timeZone, hideTimeZone, }: TimestampProps): JSX.Element;
|
|
690
839
|
|
|
691
840
|
type BannerSectionProps = {
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
841
|
+
styles: {
|
|
842
|
+
backgroundColor?: BackgroundStyle;
|
|
843
|
+
textAlignment: "left" | "right" | "center";
|
|
844
|
+
};
|
|
845
|
+
data: {
|
|
846
|
+
text: YextEntityField<string>;
|
|
847
|
+
};
|
|
695
848
|
liveVisibility: boolean;
|
|
696
849
|
};
|
|
697
850
|
declare const BannerSection: ComponentConfig<BannerSectionProps>;
|
|
698
851
|
|
|
699
852
|
type BreadcrumbsSectionProps = {
|
|
700
|
-
|
|
853
|
+
analytics?: {
|
|
854
|
+
scope?: string;
|
|
855
|
+
};
|
|
701
856
|
liveVisibility: boolean;
|
|
702
857
|
};
|
|
703
858
|
declare const BreadcrumbsSection: ComponentConfig<BreadcrumbsSectionProps>;
|
|
704
859
|
|
|
705
860
|
interface CoreInfoSectionProps {
|
|
861
|
+
data: {
|
|
862
|
+
info: {
|
|
863
|
+
headingText: YextEntityField<string>;
|
|
864
|
+
address: YextEntityField<AddressType>;
|
|
865
|
+
phoneNumbers: Array<{
|
|
866
|
+
number: YextEntityField<string>;
|
|
867
|
+
label: string;
|
|
868
|
+
}>;
|
|
869
|
+
emails: YextEntityField<string[]>;
|
|
870
|
+
};
|
|
871
|
+
hours: {
|
|
872
|
+
headingText: YextEntityField<string>;
|
|
873
|
+
hours: YextEntityField<HoursType>;
|
|
874
|
+
};
|
|
875
|
+
services: {
|
|
876
|
+
headingText: YextEntityField<string>;
|
|
877
|
+
servicesList: YextEntityField<string[]>;
|
|
878
|
+
};
|
|
879
|
+
};
|
|
706
880
|
styles: {
|
|
707
881
|
headingLevel: HeadingLevel;
|
|
708
882
|
backgroundColor?: BackgroundStyle;
|
|
883
|
+
info: {
|
|
884
|
+
showGetDirectionsLink: boolean;
|
|
885
|
+
phoneFormat: "domestic" | "international";
|
|
886
|
+
includePhoneHyperlink: boolean;
|
|
887
|
+
emailsListLength?: number;
|
|
888
|
+
};
|
|
889
|
+
hours: {
|
|
890
|
+
startOfWeek: keyof DayOfWeekNames | "today";
|
|
891
|
+
collapseDays: boolean;
|
|
892
|
+
showAdditionalHoursText: boolean;
|
|
893
|
+
};
|
|
709
894
|
};
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
address: YextEntityField<AddressType>;
|
|
713
|
-
showGetDirectionsLink: boolean;
|
|
714
|
-
};
|
|
715
|
-
phoneNumbers: {
|
|
716
|
-
phoneNumber: Array<{
|
|
717
|
-
number: YextEntityField<string>;
|
|
718
|
-
label: string;
|
|
719
|
-
}>;
|
|
720
|
-
phoneFormat: "domestic" | "international";
|
|
721
|
-
includePhoneHyperlink: boolean;
|
|
722
|
-
};
|
|
723
|
-
emails: {
|
|
724
|
-
emails: YextEntityField<string[]>;
|
|
725
|
-
listLength: number;
|
|
726
|
-
};
|
|
727
|
-
hours: {
|
|
728
|
-
headingText: YextEntityField<string>;
|
|
729
|
-
hours: YextEntityField<HoursType>;
|
|
730
|
-
startOfWeek: keyof DayOfWeekNames | "today";
|
|
731
|
-
collapseDays: boolean;
|
|
732
|
-
showAdditionalHoursText: boolean;
|
|
733
|
-
};
|
|
734
|
-
services: {
|
|
735
|
-
headingText: YextEntityField<string>;
|
|
736
|
-
servicesList: YextEntityField<string[]>;
|
|
895
|
+
analytics?: {
|
|
896
|
+
scope?: string;
|
|
737
897
|
};
|
|
738
898
|
liveVisibility: boolean;
|
|
739
899
|
}
|
|
@@ -749,6 +909,9 @@ interface EventSectionProps {
|
|
|
749
909
|
cardBackgroundColor?: BackgroundStyle;
|
|
750
910
|
headingLevel: HeadingLevel;
|
|
751
911
|
};
|
|
912
|
+
analytics?: {
|
|
913
|
+
scope?: string;
|
|
914
|
+
};
|
|
752
915
|
liveVisibility: boolean;
|
|
753
916
|
}
|
|
754
917
|
declare const EventSection: ComponentConfig<EventSectionProps>;
|
|
@@ -768,6 +931,9 @@ interface HeroSectionProps {
|
|
|
768
931
|
primaryCTA: CTAProps["variant"];
|
|
769
932
|
secondaryCTA: CTAProps["variant"];
|
|
770
933
|
};
|
|
934
|
+
analytics?: {
|
|
935
|
+
scope?: string;
|
|
936
|
+
};
|
|
771
937
|
liveVisibility: boolean;
|
|
772
938
|
}
|
|
773
939
|
declare const HeroSection: ComponentConfig<HeroSectionProps>;
|
|
@@ -782,21 +948,25 @@ interface InsightSectionProps {
|
|
|
782
948
|
cardBackgroundColor?: BackgroundStyle;
|
|
783
949
|
headingLevel: HeadingLevel;
|
|
784
950
|
};
|
|
951
|
+
analytics?: {
|
|
952
|
+
scope?: string;
|
|
953
|
+
};
|
|
785
954
|
liveVisibility: boolean;
|
|
786
955
|
}
|
|
787
956
|
declare const InsightSection: ComponentConfig<InsightSectionProps>;
|
|
788
957
|
|
|
789
958
|
interface NearbyLocationsSectionProps {
|
|
959
|
+
data: {
|
|
960
|
+
heading: YextEntityField<string>;
|
|
961
|
+
coordinate: YextEntityField<Coordinate>;
|
|
962
|
+
radius: number;
|
|
963
|
+
limit: number;
|
|
964
|
+
};
|
|
790
965
|
styles: {
|
|
791
966
|
backgroundColor?: BackgroundStyle;
|
|
792
967
|
cardBackgroundColor?: BackgroundStyle;
|
|
793
|
-
};
|
|
794
|
-
heading: {
|
|
795
|
-
level: HeadingLevel;
|
|
796
|
-
text: YextEntityField<string>;
|
|
797
|
-
};
|
|
798
|
-
cards: {
|
|
799
968
|
headingLevel: HeadingLevel;
|
|
969
|
+
cardHeadingLevel: HeadingLevel;
|
|
800
970
|
phoneNumberFormat: "domestic" | "international";
|
|
801
971
|
phoneNumberLink: boolean;
|
|
802
972
|
hours: {
|
|
@@ -806,10 +976,11 @@ interface NearbyLocationsSectionProps {
|
|
|
806
976
|
showDayNames?: boolean;
|
|
807
977
|
};
|
|
808
978
|
};
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
979
|
+
analytics?: {
|
|
980
|
+
scope?: string;
|
|
981
|
+
};
|
|
812
982
|
liveVisibility: boolean;
|
|
983
|
+
contentEndpointIdEnvVar?: string;
|
|
813
984
|
}
|
|
814
985
|
declare const NearbyLocationsSection: ComponentConfig<NearbyLocationsSectionProps>;
|
|
815
986
|
|
|
@@ -823,6 +994,9 @@ interface ProductSectionProps {
|
|
|
823
994
|
cardBackgroundColor?: BackgroundStyle;
|
|
824
995
|
headingLevel: HeadingLevel;
|
|
825
996
|
};
|
|
997
|
+
analytics?: {
|
|
998
|
+
scope?: string;
|
|
999
|
+
};
|
|
826
1000
|
liveVisibility: boolean;
|
|
827
1001
|
}
|
|
828
1002
|
declare const ProductSection: ComponentConfig<ProductSectionProps>;
|
|
@@ -836,20 +1010,21 @@ interface PromoSectionProps {
|
|
|
836
1010
|
orientation: "left" | "right";
|
|
837
1011
|
ctaVariant: CTAProps["variant"];
|
|
838
1012
|
};
|
|
1013
|
+
analytics?: {
|
|
1014
|
+
scope?: string;
|
|
1015
|
+
};
|
|
839
1016
|
liveVisibility: boolean;
|
|
840
1017
|
}
|
|
841
1018
|
declare const PromoSection: ComponentConfig<PromoSectionProps>;
|
|
842
1019
|
|
|
843
1020
|
interface PhotoGallerySectionProps {
|
|
1021
|
+
data: {
|
|
1022
|
+
heading: YextEntityField<string>;
|
|
1023
|
+
images: YextEntityField<ImageType[] | ComplexImageType[]>;
|
|
1024
|
+
};
|
|
844
1025
|
styles: {
|
|
845
1026
|
backgroundColor?: BackgroundStyle;
|
|
846
|
-
|
|
847
|
-
sectionHeading: {
|
|
848
|
-
text: YextEntityField<string>;
|
|
849
|
-
level: HeadingLevel;
|
|
850
|
-
};
|
|
851
|
-
images: {
|
|
852
|
-
images: YextEntityField<ImageType[] | ComplexImageType[]>;
|
|
1027
|
+
headingLevel: HeadingLevel;
|
|
853
1028
|
imageStyle: Omit<ImageWrapperProps, "image">;
|
|
854
1029
|
};
|
|
855
1030
|
liveVisibility: boolean;
|
|
@@ -893,6 +1068,9 @@ interface TeamSectionProps {
|
|
|
893
1068
|
heading: YextEntityField<string>;
|
|
894
1069
|
people: YextEntityField<TeamSectionType>;
|
|
895
1070
|
};
|
|
1071
|
+
analytics?: {
|
|
1072
|
+
scope?: string;
|
|
1073
|
+
};
|
|
896
1074
|
liveVisibility: boolean;
|
|
897
1075
|
}
|
|
898
1076
|
declare const TeamSection: ComponentConfig<TeamSectionProps>;
|
|
@@ -952,7 +1130,7 @@ declare const CTAWrapper: ComponentConfig<CTAWrapperProps>;
|
|
|
952
1130
|
|
|
953
1131
|
interface EmailsProps {
|
|
954
1132
|
list: YextEntityField<string[]>;
|
|
955
|
-
listLength
|
|
1133
|
+
listLength?: number;
|
|
956
1134
|
includeHyperlink: boolean;
|
|
957
1135
|
}
|
|
958
1136
|
declare const Emails: ComponentConfig<EmailsProps>;
|
|
@@ -1014,19 +1192,34 @@ declare const TextList: ComponentConfig<TextListProps>;
|
|
|
1014
1192
|
|
|
1015
1193
|
type HeaderProps = {
|
|
1016
1194
|
logoWidth?: number;
|
|
1195
|
+
analytics?: {
|
|
1196
|
+
scope?: string;
|
|
1197
|
+
};
|
|
1017
1198
|
};
|
|
1018
1199
|
declare const Header: ComponentConfig<HeaderProps>;
|
|
1019
1200
|
|
|
1020
1201
|
type FooterProps = {
|
|
1021
1202
|
backgroundColor?: BackgroundStyle;
|
|
1203
|
+
analytics?: {
|
|
1204
|
+
scope?: string;
|
|
1205
|
+
};
|
|
1022
1206
|
};
|
|
1023
1207
|
declare const Footer: ComponentConfig<FooterProps>;
|
|
1024
1208
|
|
|
1025
1209
|
interface DirectoryProps {
|
|
1026
|
-
|
|
1210
|
+
analytics?: {
|
|
1211
|
+
scope?: string;
|
|
1212
|
+
};
|
|
1027
1213
|
}
|
|
1028
1214
|
declare const Directory: ComponentConfig<DirectoryProps>;
|
|
1029
1215
|
|
|
1216
|
+
type LocatorProps = {
|
|
1217
|
+
mapStyle?: string;
|
|
1218
|
+
entityTypeEnvVar?: string;
|
|
1219
|
+
experienceKeyEnvVar?: string;
|
|
1220
|
+
};
|
|
1221
|
+
declare const LocatorComponent: ComponentConfig<LocatorProps>;
|
|
1222
|
+
|
|
1030
1223
|
type EventCardProps = {
|
|
1031
1224
|
card?: {
|
|
1032
1225
|
title: YextEntityField<string>;
|
|
@@ -1097,7 +1290,9 @@ type TestimonialCardProps = {
|
|
|
1097
1290
|
declare const TestimonialCard: ComponentConfig<TestimonialCardProps>;
|
|
1098
1291
|
|
|
1099
1292
|
type StaticMapSectionProps = {
|
|
1100
|
-
|
|
1293
|
+
data: {
|
|
1294
|
+
apiKey: string;
|
|
1295
|
+
};
|
|
1101
1296
|
liveVisibility: boolean;
|
|
1102
1297
|
};
|
|
1103
1298
|
|
|
@@ -1150,6 +1345,13 @@ declare const DirectoryCategoryComponents: {
|
|
|
1150
1345
|
Directory: _measured_puck.ComponentConfig<DirectoryProps>;
|
|
1151
1346
|
};
|
|
1152
1347
|
declare const DirectoryCategory: (keyof DirectoryCategoryProps)[];
|
|
1348
|
+
interface LocatorCategoryProps {
|
|
1349
|
+
Locator: LocatorProps;
|
|
1350
|
+
}
|
|
1351
|
+
declare const LocatorCategoryComponents: {
|
|
1352
|
+
Locator: _measured_puck.ComponentConfig<LocatorProps>;
|
|
1353
|
+
};
|
|
1354
|
+
declare const LocatorCategory: (keyof LocatorCategoryProps)[];
|
|
1153
1355
|
/** THE CATEGORIES BELOW ARE NO LONGER SUPPORTED */
|
|
1154
1356
|
interface LayoutBlockCategoryProps {
|
|
1155
1357
|
Collection: CollectionProps;
|
|
@@ -1225,6 +1427,8 @@ type SectionContainerProps = {
|
|
|
1225
1427
|
};
|
|
1226
1428
|
declare const SectionContainer: ComponentConfig<SectionContainerProps>;
|
|
1227
1429
|
|
|
1430
|
+
declare const migrationRegistry: MigrationRegistry;
|
|
1431
|
+
|
|
1228
1432
|
declare const defaultThemeConfig: ThemeConfig;
|
|
1229
1433
|
|
|
1230
|
-
export { Address, type AddressProps, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, BannerSection, type BannerSectionProps, BasicSelector, Body, type BodyProps, BodyText, type BodyTextProps, BorderRadiusSelector, BreadcrumbsSection, type BreadcrumbsSectionProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapper, type CTAWrapperProps, CardCategory, CardCategoryComponents, type CardCategoryProps, Collection, type CollectionProps, ContentBlockCategory, ContentBlockCategoryComponents, type ContentBlockCategoryProps, CoreInfoSection, type CoreInfoSectionProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryProps, Editor, Emails, type EmailsProps, EntityField, EventCard, type EventCardProps, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, ExampleRepeatableItemComponent, type ExampleRepeatableItemProps, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, Flex, type FlexProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirections, type GetDirectionsProps, Grid, type GridProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, HeadingText, type HeadingTextProps, HeroSection, type HeroSectionProps, type HeroSectionType, HoursStatus, type HoursStatusProps, HoursTable, type HoursTableProps, Image, type ImageProps, ImageWrapper, type ImageWrapperProps, InsightCard, type InsightCardProps, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, LayoutBlockCategory, LayoutBlockCategoryComponents, type LayoutBlockCategoryProps, MapboxStaticMap, type MapboxStaticProps, MaybeLink, type MaybeLinkProps, NearbyLocationsSection, type NearbyLocationsSectionProps, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, PersonCard, type PersonCardProps, type PersonStruct, Phone, PhoneAtom, type PhoneAtomProps, type PhoneProps, PhotoGallerySection, type PhotoGallerySectionProps, ProductCard, type ProductCardProps, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, PromoSection, type PromoSectionProps, type PromoSectionType, type RenderYextEntityFieldSelectorProps, SectionContainer, type SectionContainerProps, SpacingSelector, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, TestimonialCard, type TestimonialCardProps, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, TextList, type TextListProps, type ThemeConfig, ThemeOptions, Timestamp, TimestampOption, type TimestampProps, VisibilityWrapper, VisualEditorProvider, type YextCollection, YextCollectionSubfieldSelector, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, type YextStructEntityField, YextStructFieldSelector, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, fetchNearbyLocations, getFontWeightOptions, getFontWeightOverrideOptions, getPageMetadata, handleResolveFieldsForCollections, headingVariants, normalizeSlug, resolveYextEntityField, resolveYextStructField, resolveYextSubfield, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, useTemplateProps, validateSlug };
|
|
1434
|
+
export { Address, type AddressProps, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, BannerSection, type BannerSectionProps, BasicSelector, Body, type BodyProps, BodyText, type BodyTextProps, BorderRadiusSelector, BreadcrumbsSection, type BreadcrumbsSectionProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapper, type CTAWrapperProps, CardCategory, CardCategoryComponents, type CardCategoryProps, Collection, type CollectionProps, type ComponentField, ComponentFields, ContentBlockCategory, ContentBlockCategoryComponents, type ContentBlockCategoryProps, CoreInfoSection, type CoreInfoSectionProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryProps, Editor, Emails, type EmailsProps, EntityField, EventCard, type EventCardProps, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, ExampleRepeatableItemComponent, type ExampleRepeatableItemProps, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, Flex, type FlexProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirections, type GetDirectionsProps, Grid, type GridProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, HeadingText, type HeadingTextProps, HeroSection, type HeroSectionProps, type HeroSectionType, HoursStatus, HoursStatusAtom, type HoursStatusAtomProps, type HoursStatusProps, HoursTable, HoursTableAtom, type HoursTableAtomProps, type HoursTableProps, Image, type ImageProps, ImageWrapper, type ImageWrapperProps, InsightCard, type InsightCardProps, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, KnowledgeGraphIcon, LayoutBlockCategory, LayoutBlockCategoryComponents, type LayoutBlockCategoryProps, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorProps, MapboxStaticMap, type MapboxStaticProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Migration, type MigrationAction, type MigrationRegistry, NearbyLocationsSection, type NearbyLocationsSectionProps, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, PersonCard, type PersonCardProps, type PersonStruct, Phone, PhoneAtom, type PhoneAtomProps, type PhoneProps, PhotoGallerySection, type PhotoGallerySectionProps, ProductCard, type ProductCardProps, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, PromoSection, type PromoSectionProps, type PromoSectionType, type RTF2, type RenderYextEntityFieldSelectorProps, SectionContainer, type SectionContainerProps, SpacingSelector, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, TestimonialCard, type TestimonialCardProps, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, TextList, type TextListProps, type ThemeConfig, ThemeOptions, Timestamp, TimestampOption, type TimestampProps, VisibilityWrapper, VisualEditorProvider, type YextCollection, YextCollectionSubfieldSelector, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, type YextStructEntityField, YextStructFieldSelector, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createSearchAnalyticsConfig, createSearchHeadlessConfig, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, fetchNearbyLocations, getFontWeightOptions, getFontWeightOverrideOptions, getPageMetadata, handleResolveFieldsForCollections, headingVariants, i18nComponentsInstance, i18nPlatformInstance, migrate, migrationRegistry, normalizeSlug, resolveYextEntityField, resolveYextStructField, resolveYextSubfield, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, validateSlug, withPropOverrides };
|