@yext/visual-editor 1.2.1 → 1.2.2
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 +236 -138
- package/dist/plugin/plugin.js +3500 -3432
- package/dist/style.css +1 -1
- package/dist/{visual-editor-CL3H-ucK.js → visual-editor-0w4MjQ7u.js} +180 -175
- package/dist/{visual-editor-BslzijbD.js → visual-editor-2-KEV6Bi.js} +193 -188
- package/dist/visual-editor-2tz7_qb1.js +205 -0
- package/dist/visual-editor-4sBYqlfb.js +217 -0
- package/dist/{visual-editor-DCUbJKvk.js → visual-editor-B11LkRnN.js} +233 -228
- package/dist/{visual-editor-BJKWRWKd.js → visual-editor-B730sbVC.js} +204 -199
- package/dist/visual-editor-B8JKoWlR.js +229 -0
- package/dist/{visual-editor-DCVq_eL6.js → visual-editor-BAK074xE.js} +192 -187
- package/dist/visual-editor-BBqOijue.js +205 -0
- package/dist/visual-editor-BGd_8Pon.js +205 -0
- package/dist/visual-editor-BSw400VK.js +213 -0
- package/dist/visual-editor-BdMRND-6.js +205 -0
- package/dist/{visual-editor-Cp2Q8Dim.js → visual-editor-BlF4QLxb.js} +192 -187
- package/dist/visual-editor-Bn1efHJx.js +205 -0
- package/dist/{visual-editor--615hTUT.js → visual-editor-Bp1ppHep.js} +197 -192
- package/dist/{visual-editor-DSZjbVw0.js → visual-editor-BrBxbTCR.js} +180 -175
- package/dist/{visual-editor-DG30VXrY.js → visual-editor-BtgvQMAS.js} +196 -191
- package/dist/visual-editor-Buiak3nH.js +229 -0
- package/dist/{visual-editor-D7xHq5HU.js → visual-editor-BvbUBRrp.js} +197 -192
- package/dist/visual-editor-C6RPqOyA.js +217 -0
- package/dist/visual-editor-CBFwIwkp.js +205 -0
- package/dist/visual-editor-CG9tYQOh.js +205 -0
- package/dist/visual-editor-COHzzbYf.js +205 -0
- package/dist/{visual-editor-BBCKpnwt.js → visual-editor-COcUiVMb.js} +190 -185
- package/dist/visual-editor-CZXxF7QB.js +205 -0
- package/dist/{visual-editor-CXPEm4gm.js → visual-editor-ChNoAjo2.js} +197 -192
- package/dist/{visual-editor-EiNc40Of.js → visual-editor-Cjui2PNL.js} +198 -193
- package/dist/visual-editor-CkMu4pGG.js +205 -0
- package/dist/visual-editor-D0Jinm_U.js +217 -0
- package/dist/visual-editor-D0aMSxJb.js +229 -0
- package/dist/{visual-editor-DAQF83v2.js → visual-editor-D32Dc7no.js} +181 -176
- package/dist/visual-editor-D4dfJCGq.js +217 -0
- package/dist/visual-editor-DC-6I5mi.js +205 -0
- package/dist/visual-editor-DP66DlA5.js +205 -0
- package/dist/visual-editor-DWuRLZUL.js +217 -0
- package/dist/{visual-editor-DB1y536I.js → visual-editor-DbzvrHDN.js} +189 -184
- package/dist/visual-editor-DdwRAA-5.js +217 -0
- package/dist/{visual-editor-CWR0u27i.js → visual-editor-Djduj2-O.js} +211 -206
- package/dist/{visual-editor-DKNe4ErQ.js → visual-editor-Djl41Gbe.js} +190 -185
- package/dist/visual-editor-DokmMQiS.js +205 -0
- package/dist/{visual-editor-LyAgLEDI.js → visual-editor-DswuGpN2.js} +198 -193
- package/dist/{visual-editor-WSnY9bfE.js → visual-editor-DuTVpw14.js} +218 -213
- package/dist/{visual-editor-BtmyMgn8.js → visual-editor-JNkWz1u6.js} +175 -170
- package/dist/{visual-editor-Dv0lXckn.js → visual-editor-T_JGkJJg.js} +209 -204
- package/dist/{visual-editor-B-XtSmtQ.js → visual-editor-VGNTkkQm.js} +199 -194
- package/dist/{visual-editor-CkrVmKqP.js → visual-editor-efYiLCpk.js} +216 -211
- package/dist/visual-editor-he4ii7AP.js +205 -0
- package/dist/{visual-editor-Dz4Ftm-v.js → visual-editor-jnepnQ0H.js} +214 -209
- package/dist/{visual-editor-DMgwM9mf.js → visual-editor-lxK4fNwK.js} +188 -183
- package/dist/visual-editor-yOUQNrKb.js +229 -0
- package/dist/visual-editor.js +15447 -14988
- package/package.json +4 -4
- package/dist/visual-editor-5viILmK2.js +0 -223
- package/dist/visual-editor-8M5Hqx4X.js +0 -211
- package/dist/visual-editor-B25725d2.js +0 -211
- package/dist/visual-editor-BwrhuMAN.js +0 -199
- package/dist/visual-editor-C2dpF5F8.js +0 -211
- package/dist/visual-editor-C9gJjr-S.js +0 -199
- package/dist/visual-editor-CBHqDMaW.js +0 -223
- package/dist/visual-editor-CMmyMiWT.js +0 -199
- package/dist/visual-editor-CNE02o_H.js +0 -211
- package/dist/visual-editor-COJhU5Y-.js +0 -199
- package/dist/visual-editor-CPKET4Hk.js +0 -211
- package/dist/visual-editor-CaBeaBn6.js +0 -199
- package/dist/visual-editor-CqOv3Qi-.js +0 -199
- package/dist/visual-editor-CrSHjfq2.js +0 -199
- package/dist/visual-editor-DeUPgs0w.js +0 -199
- package/dist/visual-editor-Dhi0FdVd.js +0 -199
- package/dist/visual-editor-Dj53QzhR.js +0 -207
- package/dist/visual-editor-DlW_yHKs.js +0 -211
- package/dist/visual-editor-Du-OtXB5.js +0 -199
- package/dist/visual-editor-EMklzKJd.js +0 -199
- package/dist/visual-editor-EN8CT9E3.js +0 -199
- package/dist/visual-editor-H4pE1deN.js +0 -223
- package/dist/visual-editor-Sp-srIpj.js +0 -199
- package/dist/visual-editor-f0OGRIJQ.js +0 -199
- package/dist/visual-editor-qqxBEEkD.js +0 -223
package/dist/index.d.ts
CHANGED
|
@@ -4,15 +4,16 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
4
4
|
import * as react_i18next from 'react-i18next';
|
|
5
5
|
import * as i18next from 'i18next';
|
|
6
6
|
import { TOptions } from 'i18next';
|
|
7
|
-
import { ImageType, CTA as CTA$1, LinkType, HoursTableProps as HoursTableProps$1, ComplexImageType, HoursType, AddressType, DayOfWeekNames, Coordinate, ListingType } from '@yext/pages-components';
|
|
7
|
+
import { ImageType, CTA as CTA$1, LinkType, HoursTableProps as HoursTableProps$1, ComplexImageType, HoursType, AddressType, DayOfWeekNames, Coordinate as Coordinate$1, ListingType } from '@yext/pages-components';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
9
|
import * as _puckeditor_core from '@puckeditor/core';
|
|
10
|
-
import { Data, DefaultComponentProps, DefaultRootProps, Config,
|
|
10
|
+
import { Data, DefaultComponentProps, DefaultRootProps, Config, BaseField, FieldProps, ComponentConfig, Field, CustomField, ArrayField, 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';
|
|
14
|
-
import { SearchAnalyticsConfig, Coordinate as Coordinate$
|
|
14
|
+
import { SearchAnalyticsConfig, Coordinate as Coordinate$2, CardProps } from '@yext/search-ui-react';
|
|
15
15
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
16
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
16
17
|
|
|
17
18
|
declare const usePlatformBridgeDocument: () => any;
|
|
18
19
|
|
|
@@ -232,7 +233,6 @@ type PresetImageType = "app-store" | "google-play" | "galaxy-store" | "app-galle
|
|
|
232
233
|
type HeroSectionType = {
|
|
233
234
|
/**
|
|
234
235
|
* The image to show in the hero section
|
|
235
|
-
* @ai Always use ImageType
|
|
236
236
|
*/
|
|
237
237
|
image?: ImageType | AssetImageType;
|
|
238
238
|
/** The first CTA button for the hero section */
|
|
@@ -244,7 +244,6 @@ type HeroSectionType = {
|
|
|
244
244
|
type PromoSectionType = {
|
|
245
245
|
/**
|
|
246
246
|
* The image or video to show in the promo
|
|
247
|
-
* @ai Always use ImageType
|
|
248
247
|
*/
|
|
249
248
|
image?: ImageType | AssetImageType | AssetVideo;
|
|
250
249
|
/** The main text to display in the promo */
|
|
@@ -262,26 +261,22 @@ type ProductSectionType = {
|
|
|
262
261
|
type ProductStruct = {
|
|
263
262
|
/**
|
|
264
263
|
* The product's image
|
|
265
|
-
* @ai Always use ImageType
|
|
266
264
|
*/
|
|
267
265
|
image?: ImageType | AssetImageType;
|
|
268
266
|
/**
|
|
269
267
|
* The product's brow text above the title/name
|
|
270
|
-
* @ai This should not be more than a few words
|
|
271
268
|
*/
|
|
272
269
|
brow?: TranslatableString | TranslatableRichText;
|
|
273
270
|
/** The product's name */
|
|
274
271
|
name?: TranslatableString;
|
|
275
272
|
/**
|
|
276
273
|
* The product's price
|
|
277
|
-
* @ai This should not be more than a few words
|
|
278
274
|
*/
|
|
279
275
|
price?: TranslatableString | TranslatableRichText;
|
|
280
276
|
/** The product's description */
|
|
281
277
|
description?: TranslatableRichText;
|
|
282
278
|
/**
|
|
283
279
|
* The product's category
|
|
284
|
-
* @ai This should not be more than a few words
|
|
285
280
|
*/
|
|
286
281
|
category?: TranslatableString | TranslatableRichText;
|
|
287
282
|
/** The product's CTA */
|
|
@@ -295,7 +290,6 @@ type EventSectionType = {
|
|
|
295
290
|
type EventStruct = {
|
|
296
291
|
/**
|
|
297
292
|
* An image representing the event
|
|
298
|
-
* @ai Always use ImageType
|
|
299
293
|
*/
|
|
300
294
|
image?: ImageType | AssetImageType;
|
|
301
295
|
/** The event's title */
|
|
@@ -335,14 +329,12 @@ type TestimonialStruct = {
|
|
|
335
329
|
type InsightStruct = {
|
|
336
330
|
/**
|
|
337
331
|
* An image representing the insight
|
|
338
|
-
* @ai Always use ImageType
|
|
339
332
|
*/
|
|
340
333
|
image?: ImageType | AssetImageType;
|
|
341
334
|
/** The insight's title */
|
|
342
335
|
name?: TranslatableString;
|
|
343
336
|
/**
|
|
344
337
|
* The insight's category
|
|
345
|
-
* @ai This should not be more than a few words
|
|
346
338
|
*/
|
|
347
339
|
category?: TranslatableString | TranslatableRichText;
|
|
348
340
|
/** A UTC string for the insight's publish time (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ) */
|
|
@@ -364,7 +356,6 @@ type TeamSectionType = {
|
|
|
364
356
|
type PersonStruct = {
|
|
365
357
|
/**
|
|
366
358
|
* The person's headshot image
|
|
367
|
-
* @ai Always use ImageType
|
|
368
359
|
*/
|
|
369
360
|
headshot?: ImageType | AssetImageType;
|
|
370
361
|
/** The person's name */
|
|
@@ -385,12 +376,10 @@ type LocalizedValues = {
|
|
|
385
376
|
} & Record<string, string | undefined>;
|
|
386
377
|
/**
|
|
387
378
|
* A string that can be translated for different locales.
|
|
388
|
-
* @ai This should always be the LocalizedValues type
|
|
389
379
|
*/
|
|
390
380
|
type TranslatableString = string | LocalizedValues;
|
|
391
381
|
/**
|
|
392
382
|
* Rich text that can be translated for different locales.
|
|
393
|
-
* @ai This should always be Record<string, RichText>
|
|
394
383
|
*/
|
|
395
384
|
type TranslatableRichText = (string | RichText) | ({
|
|
396
385
|
hasLocalizedValue?: "true";
|
|
@@ -471,6 +460,10 @@ declare const ThemeOptions: {
|
|
|
471
460
|
label: MsgString;
|
|
472
461
|
value: string;
|
|
473
462
|
}[];
|
|
463
|
+
FONT_STYLE: {
|
|
464
|
+
label: MsgString;
|
|
465
|
+
value: string;
|
|
466
|
+
}[];
|
|
474
467
|
LETTER_SPACING: {
|
|
475
468
|
label: string;
|
|
476
469
|
value: string;
|
|
@@ -656,6 +649,41 @@ declare const deepMerge: <T extends PlainObject, U extends PlainObject>(obj1: T,
|
|
|
656
649
|
*/
|
|
657
650
|
declare const themeResolver: (developerTheming: TailwindConfig, marketerTheming: ThemeConfig) => TailwindConfig;
|
|
658
651
|
|
|
652
|
+
type FontWeightSupport = {
|
|
653
|
+
weights: number[];
|
|
654
|
+
} | {
|
|
655
|
+
minWeight: number;
|
|
656
|
+
maxWeight: number;
|
|
657
|
+
};
|
|
658
|
+
type FontVariant = {
|
|
659
|
+
style: "normal" | "italic";
|
|
660
|
+
filePath: string;
|
|
661
|
+
} & FontWeightSupport;
|
|
662
|
+
type Font = {
|
|
663
|
+
fallback: "sans-serif" | "serif" | "monospace" | "cursive";
|
|
664
|
+
italics: boolean;
|
|
665
|
+
facePath?: string;
|
|
666
|
+
variants?: FontVariant[];
|
|
667
|
+
} & FontWeightSupport;
|
|
668
|
+
type FontRegistry = Record<string, Font>;
|
|
669
|
+
declare const defaultFonts: FontRegistry;
|
|
670
|
+
/**
|
|
671
|
+
* Builds font-family select options from a font registry. The label and CSS
|
|
672
|
+
* font-family value are both derived from the font family name so theme data
|
|
673
|
+
* remains human-readable.
|
|
674
|
+
*/
|
|
675
|
+
declare const constructFontSelectOptions: (fonts: FontRegistry) => {
|
|
676
|
+
label: string;
|
|
677
|
+
value: string;
|
|
678
|
+
}[];
|
|
679
|
+
type getFontWeightParams = {
|
|
680
|
+
fontCssVariable?: string;
|
|
681
|
+
weightOptions?: StyleSelectOption[];
|
|
682
|
+
fontList?: FontRegistry;
|
|
683
|
+
};
|
|
684
|
+
declare const getFontWeightOptions: (options: getFontWeightParams) => StyleSelectOption[];
|
|
685
|
+
declare const getFontWeightOverrideOptions: (options: getFontWeightParams) => Promise<StyleSelectOption[]>;
|
|
686
|
+
|
|
659
687
|
declare const applyTheme: (document: StreamDocument, relativePrefixToRoot: string, themeConfig: ThemeConfig, base?: string) => string;
|
|
660
688
|
|
|
661
689
|
declare const getCanonicalUrl: (data: Record<string, any>) => string;
|
|
@@ -727,10 +755,16 @@ type MigrationAction = {
|
|
|
727
755
|
id: string;
|
|
728
756
|
} & Record<string, any>;
|
|
729
757
|
};
|
|
758
|
+
type ContentMigrationAction = {
|
|
759
|
+
transformation: (content: Data["content"]) => Data["content"];
|
|
760
|
+
};
|
|
761
|
+
type RootMigrationAction = {
|
|
762
|
+
propTransformation: (oldProps: Record<string, any>, streamDocument: StreamDocument) => Record<string, any>;
|
|
763
|
+
};
|
|
730
764
|
type Migration = Record<string, MigrationAction> | {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
765
|
+
content: ContentMigrationAction;
|
|
766
|
+
} | {
|
|
767
|
+
root: RootMigrationAction;
|
|
734
768
|
};
|
|
735
769
|
type MigrationRegistry = Migration[];
|
|
736
770
|
interface RootProps extends DefaultRootProps {
|
|
@@ -748,6 +782,99 @@ interface BodyProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "co
|
|
|
748
782
|
}
|
|
749
783
|
declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
750
784
|
|
|
785
|
+
type BasicSelectorOptions = ComboboxOption[] | (() => ComboboxOption[]);
|
|
786
|
+
/**
|
|
787
|
+
Example usage:
|
|
788
|
+
|
|
789
|
+
import type { PuckComponent } from "@puckeditor/core";
|
|
790
|
+
import { msg } from "../utils/i18n/platform.ts";
|
|
791
|
+
import { YextComponentConfig, YextFields } from "./fields.ts";
|
|
792
|
+
|
|
793
|
+
export type MyComponentProps = {
|
|
794
|
+
foo: string;
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
const myComponentFields: YextFields<MyComponentProps> = {
|
|
798
|
+
foo: {
|
|
799
|
+
type: "basicSelector",
|
|
800
|
+
label: msg("tone", "Tone"),
|
|
801
|
+
options: [
|
|
802
|
+
{ label: msg("foo.options.neutral", "Neutral"), value: "neutral" },
|
|
803
|
+
{ label: msg("foo.options.bold", "Bold"), value: "bold" },
|
|
804
|
+
],
|
|
805
|
+
disableSearch: false,
|
|
806
|
+
},
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
const MyComponentWrapper: PuckComponent<MyComponentProps> = ({ foo }) => {
|
|
810
|
+
return <div>{foo}</div>;
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
export const MyComponent: YextComponentConfig<MyComponentProps> = {
|
|
814
|
+
label: msg("components.myComponent", "My Component"),
|
|
815
|
+
fields: myComponentFields,
|
|
816
|
+
// resolveData: (data) => {...},
|
|
817
|
+
render: (props) => <MyComponentWrapper {...props} />,
|
|
818
|
+
};
|
|
819
|
+
*/
|
|
820
|
+
type BasicSelectorField = BaseField & {
|
|
821
|
+
type: "basicSelector";
|
|
822
|
+
label?: string | MsgString;
|
|
823
|
+
visible?: boolean;
|
|
824
|
+
translateOptions?: boolean;
|
|
825
|
+
noOptionsPlaceholder?: string | MsgString;
|
|
826
|
+
noOptionsMessage?: string | MsgString;
|
|
827
|
+
disableSearch?: boolean;
|
|
828
|
+
} & ({
|
|
829
|
+
options: BasicSelectorOptions;
|
|
830
|
+
optionGroups?: never;
|
|
831
|
+
} | {
|
|
832
|
+
options?: never;
|
|
833
|
+
optionGroups: ComboboxOptionGroup[];
|
|
834
|
+
});
|
|
835
|
+
type BasicSelectorFieldProps = FieldProps<BasicSelectorField>;
|
|
836
|
+
declare const BasicSelectorFieldOverride: ({ field, value, onChange, }: BasicSelectorFieldProps) => react_jsx_runtime.JSX.Element;
|
|
837
|
+
|
|
838
|
+
type CodeLanguageOptions = "html" | "css" | "json" | "shell" | "java" | "javascript" | "jsx" | "markdown" | "typescript";
|
|
839
|
+
type CodeField = BaseField & {
|
|
840
|
+
type: "code";
|
|
841
|
+
label?: string | MsgString;
|
|
842
|
+
visible?: boolean;
|
|
843
|
+
codeLanguage: CodeLanguageOptions;
|
|
844
|
+
};
|
|
845
|
+
type CodeFieldOverrideProps = FieldProps<CodeField> & {
|
|
846
|
+
children: React__default.ReactNode;
|
|
847
|
+
};
|
|
848
|
+
declare const CodeFieldOverride: ({ field, value, onChange, }: CodeFieldOverrideProps) => react_jsx_runtime.JSX.Element;
|
|
849
|
+
|
|
850
|
+
type DateTimeSelectorField = BaseField & {
|
|
851
|
+
type: "dateTimeSelector";
|
|
852
|
+
label?: string | MsgString;
|
|
853
|
+
visible?: boolean;
|
|
854
|
+
};
|
|
855
|
+
type DateTimeSelectorFieldProps = FieldProps<DateTimeSelectorField>;
|
|
856
|
+
declare const DateTimeSelectorFieldOverride: ({ field, value, onChange, }: DateTimeSelectorFieldProps) => react_jsx_runtime.JSX.Element;
|
|
857
|
+
|
|
858
|
+
type FontSizeSelectorField = BaseField & {
|
|
859
|
+
type: "fontSizeSelector";
|
|
860
|
+
label?: string | MsgString;
|
|
861
|
+
visible?: boolean;
|
|
862
|
+
includeLargeSizes?: boolean;
|
|
863
|
+
};
|
|
864
|
+
type FontSizeSelectorFieldProps = FieldProps<FontSizeSelectorField>;
|
|
865
|
+
declare const FontSizeSelectorFieldOverride: ({ field, value, onChange, }: FontSizeSelectorFieldProps) => react_jsx_runtime.JSX.Element;
|
|
866
|
+
|
|
867
|
+
type YextPuckFields = {
|
|
868
|
+
basicSelector: BasicSelectorField;
|
|
869
|
+
code: CodeField;
|
|
870
|
+
dateTimeSelector: DateTimeSelectorField;
|
|
871
|
+
fontSizeSelector: FontSizeSelectorField;
|
|
872
|
+
};
|
|
873
|
+
type YextComponentConfig<Props extends DefaultComponentProps = DefaultComponentProps> = ComponentConfig<{
|
|
874
|
+
props: Props;
|
|
875
|
+
fields: YextPuckFields;
|
|
876
|
+
}>;
|
|
877
|
+
|
|
751
878
|
type Only<T, U> = {
|
|
752
879
|
[P in keyof T]: T[P];
|
|
753
880
|
} & {
|
|
@@ -885,28 +1012,20 @@ type EditorProps$1 = {
|
|
|
885
1012
|
type VisualEditorProviderProps<T> = UniversalProps<T> & AllOrNothing<EditorProps$1>;
|
|
886
1013
|
declare const VisualEditorProvider: <T extends Record<string, any>>({ templateProps, entityFields, tailwindConfig, children, }: VisualEditorProviderProps<T>) => react_jsx_runtime.JSX.Element;
|
|
887
1014
|
|
|
888
|
-
type FontRegistry = Record<string, FontSpecification>;
|
|
889
|
-
type FontSpecification = {
|
|
890
|
-
italics: boolean;
|
|
891
|
-
fallback: "sans-serif" | "serif" | "monospace" | "cursive";
|
|
892
|
-
} & ({
|
|
893
|
-
minWeight: number;
|
|
894
|
-
maxWeight: number;
|
|
895
|
-
} | {
|
|
896
|
-
weights: number[];
|
|
897
|
-
});
|
|
898
|
-
declare const defaultFonts: FontRegistry;
|
|
899
|
-
declare const constructFontSelectOptions: (fonts: FontRegistry) => StyleSelectOption[];
|
|
900
|
-
type getFontWeightParams = {
|
|
901
|
-
fontCssVariable?: string;
|
|
902
|
-
weightOptions?: StyleSelectOption[];
|
|
903
|
-
fontList?: FontRegistry;
|
|
904
|
-
};
|
|
905
|
-
declare const getFontWeightOptions: (options: getFontWeightParams) => StyleSelectOption[];
|
|
906
|
-
declare const getFontWeightOverrideOptions: (options: getFontWeightParams) => Promise<StyleSelectOption[]>;
|
|
907
|
-
|
|
908
1015
|
declare function withPropOverrides<C extends ComponentConfig>(base: C, overrides: Partial<typeof base.defaultProps>): C;
|
|
909
1016
|
|
|
1017
|
+
type BreadcrumbLink = {
|
|
1018
|
+
/** The display name of the DM parent. */
|
|
1019
|
+
name: string;
|
|
1020
|
+
/** The relative url path to the DM parent. */
|
|
1021
|
+
slug: string;
|
|
1022
|
+
};
|
|
1023
|
+
/**
|
|
1024
|
+
* Reads the first valid dm_directoryParents field from the stream document.
|
|
1025
|
+
* Extracts the parents' display name and resolves the url path based on pathInfo (with dm slug fallback).
|
|
1026
|
+
*/
|
|
1027
|
+
declare const resolveBreadcrumbs: (streamDocument: StreamDocument) => BreadcrumbLink[];
|
|
1028
|
+
|
|
910
1029
|
type ComponentField = {
|
|
911
1030
|
name: string;
|
|
912
1031
|
type: EntityFieldTypes;
|
|
@@ -1005,25 +1124,8 @@ type OptionalNumberFieldProps = {
|
|
|
1005
1124
|
};
|
|
1006
1125
|
declare const OptionalNumberField: ({ fieldLabel, hideNumberFieldRadioLabel, showNumberFieldRadioLabel, defaultCustomValue, }: OptionalNumberFieldProps) => CustomField<number | string>;
|
|
1007
1126
|
|
|
1008
|
-
declare const FontSizeSelector: (label?: string, includeLargeSizes?: boolean) => Field;
|
|
1009
|
-
|
|
1010
1127
|
declare const SpacingSelector: <T>(label: string, spacingType: "padding" | "gap", includeDefault: boolean) => Field<T>;
|
|
1011
1128
|
|
|
1012
|
-
type BasicSelectorProps = {
|
|
1013
|
-
label?: string;
|
|
1014
|
-
translateOptions?: boolean;
|
|
1015
|
-
noOptionsPlaceholder?: string;
|
|
1016
|
-
noOptionsMessage?: string;
|
|
1017
|
-
disableSearch?: boolean;
|
|
1018
|
-
} & ({
|
|
1019
|
-
options: ComboboxOption[];
|
|
1020
|
-
optionGroups?: never;
|
|
1021
|
-
} | {
|
|
1022
|
-
options?: never;
|
|
1023
|
-
optionGroups: ComboboxOptionGroup[];
|
|
1024
|
-
});
|
|
1025
|
-
declare const BasicSelector: <T>(props: BasicSelectorProps) => Field<T>;
|
|
1026
|
-
|
|
1027
1129
|
type DynamicOptionValueTypes = string | number | boolean | object;
|
|
1028
1130
|
type DynamicOptionsSelectorProps<T extends DynamicOptionValueTypes> = {
|
|
1029
1131
|
label: string;
|
|
@@ -1037,9 +1139,6 @@ interface DynamicOptionSelection<T extends DynamicOptionValueTypes> {
|
|
|
1037
1139
|
interface DynamicOptionsSelectorType<T extends DynamicOptionValueTypes> {
|
|
1038
1140
|
selections: DynamicOptionSelection<T>[];
|
|
1039
1141
|
}
|
|
1040
|
-
interface DynamicOptionsSingleSelectorType<T extends DynamicOptionValueTypes> {
|
|
1041
|
-
selection: DynamicOptionSelection<T>;
|
|
1042
|
-
}
|
|
1043
1142
|
interface DynamicOption<T extends DynamicOptionValueTypes> {
|
|
1044
1143
|
label: string;
|
|
1045
1144
|
value: T | undefined;
|
|
@@ -1049,18 +1148,6 @@ interface DynamicOption<T extends DynamicOptionValueTypes> {
|
|
|
1049
1148
|
* uses hooks.
|
|
1050
1149
|
*/
|
|
1051
1150
|
declare const DynamicOptionsSelector: <T extends DynamicOptionValueTypes>(props: DynamicOptionsSelectorProps<T>) => Field<DynamicOptionsSelectorType<T> | undefined>;
|
|
1052
|
-
/**
|
|
1053
|
-
* A single selector component for dynamic options. The options can be loaded from a function that
|
|
1054
|
-
* uses hooks.
|
|
1055
|
-
*/
|
|
1056
|
-
declare const DynamicOptionsSingleSelector: <T extends DynamicOptionValueTypes>(props: DynamicOptionsSelectorProps<T>) => Field<DynamicOptionsSingleSelectorType<T> | undefined>;
|
|
1057
|
-
|
|
1058
|
-
type codeLanguageOptions = "html" | "css" | "json" | "shell" | "java" | "javascript" | "jsx" | "markdown" | "typescript";
|
|
1059
|
-
type CodeFieldProps = {
|
|
1060
|
-
fieldLabel: string;
|
|
1061
|
-
codeLanguage: codeLanguageOptions;
|
|
1062
|
-
};
|
|
1063
|
-
declare const CodeField: ({ fieldLabel, codeLanguage, }: CodeFieldProps) => CustomField<number | string>;
|
|
1064
1151
|
|
|
1065
1152
|
/** Copied from Puck, do not change */
|
|
1066
1153
|
type FieldOption = {
|
|
@@ -1103,9 +1190,6 @@ type YextTextField = YextBaseField & {
|
|
|
1103
1190
|
type YextOptionalNumberField = YextBaseField & Omit<OptionalNumberFieldProps, "fieldLabel"> & {
|
|
1104
1191
|
type: "optionalNumber";
|
|
1105
1192
|
};
|
|
1106
|
-
type YextCodeField = YextBaseField & Omit<CodeFieldProps, "fieldLabel"> & {
|
|
1107
|
-
type: "code";
|
|
1108
|
-
};
|
|
1109
1193
|
type YextMaxWidthField = YextBaseField & {
|
|
1110
1194
|
type: "maxWidth";
|
|
1111
1195
|
};
|
|
@@ -1126,20 +1210,19 @@ type YextDynamicSelectField<T extends DynamicOptionValueTypes> = YextBaseField &
|
|
|
1126
1210
|
getOptions: () => DynamicOption<T>[];
|
|
1127
1211
|
placeholderOptionLabel?: string;
|
|
1128
1212
|
};
|
|
1129
|
-
type YextDynamicSingleSelectField<T extends DynamicOptionValueTypes> = YextBaseField & {
|
|
1130
|
-
type: "dynamicSingleSelect";
|
|
1131
|
-
getOptions: () => DynamicOption<T>[];
|
|
1132
|
-
dropdownLabel: string;
|
|
1133
|
-
placeholderOptionLabel?: string;
|
|
1134
|
-
};
|
|
1135
1213
|
type YextEntitySelectorField<T extends Record<string, any> = Record<string, any>> = YextBaseField & Omit<RenderYextEntityFieldSelectorProps<T>, "label"> & {
|
|
1136
1214
|
type: "entityField";
|
|
1137
1215
|
};
|
|
1138
|
-
type YextFieldConfig<Props = any> = YextArrayField<Props extends Record<string, any>[] ? Props : any> | YextObjectField<Props extends Record<string, any> ? Props : any> | YextNumberField | YextTextField | YextEntitySelectorField<Props extends Record<string, any> ? Props : any> | YextSelectField | YextRadioField | YextOptionalNumberField |
|
|
1216
|
+
type YextFieldConfig<Props = any> = YextArrayField<Props extends Record<string, any>[] ? Props : any> | YextObjectField<Props extends Record<string, any> ? Props : any> | YextNumberField | YextTextField | YextEntitySelectorField<Props extends Record<string, any> ? Props : any> | YextSelectField | YextRadioField | YextOptionalNumberField | YextMaxWidthField | YextTranslatableStringField | YextImageField | YextVideoField | YextDynamicSelectField<Props extends DynamicOptionValueTypes ? Props : any> | YextPuckFields[keyof YextPuckFields];
|
|
1139
1217
|
declare function YextField<T = any>(fieldName: MsgString, config: YextFieldConfig<T>): Field<T>;
|
|
1140
1218
|
declare function YextField<T extends Record<string, any>, U = any>(fieldName: MsgString, config: YextEntitySelectorField<T>): Field<YextEntityField<U>>;
|
|
1141
1219
|
declare function YextField<T extends DynamicOptionsSelectorType<U>, U extends DynamicOptionValueTypes>(fieldName: MsgString, config: YextDynamicSelectField<U>): Field<T | undefined>;
|
|
1142
|
-
|
|
1220
|
+
|
|
1221
|
+
type YextAutoFieldProps<ValueType = any> = Omit<FieldProps<any, ValueType>, "field"> & {
|
|
1222
|
+
field: Field<ValueType> | YextPuckFields[keyof YextPuckFields];
|
|
1223
|
+
value: ValueType;
|
|
1224
|
+
};
|
|
1225
|
+
declare const YextAutoField: <ValueType>({ field, ...props }: YextAutoFieldProps<ValueType>) => react_jsx_runtime.JSX.Element;
|
|
1143
1226
|
|
|
1144
1227
|
declare const KnowledgeGraphIcon: ({ enabled }: {
|
|
1145
1228
|
enabled: boolean;
|
|
@@ -1701,7 +1784,7 @@ declare const ImageWrapper: ComponentConfig<{
|
|
|
1701
1784
|
|
|
1702
1785
|
type MapboxStaticProps = {
|
|
1703
1786
|
apiKey: string;
|
|
1704
|
-
coordinate: YextEntityField<Coordinate>;
|
|
1787
|
+
coordinate: YextEntityField<Coordinate$1>;
|
|
1705
1788
|
mapStyle: string;
|
|
1706
1789
|
zoom?: number;
|
|
1707
1790
|
};
|
|
@@ -2563,7 +2646,7 @@ interface LocatorResultCardProps {
|
|
|
2563
2646
|
* The field from the data to use for the primary heading
|
|
2564
2647
|
* @defaultValue "name"
|
|
2565
2648
|
*/
|
|
2566
|
-
field
|
|
2649
|
+
field?: string;
|
|
2567
2650
|
/** Static value for the primary heading */
|
|
2568
2651
|
constantValue?: TranslatableString;
|
|
2569
2652
|
/** Whether to use the static value for the primary heading */
|
|
@@ -2579,7 +2662,7 @@ interface LocatorResultCardProps {
|
|
|
2579
2662
|
/** Settings for the secondary heading of the card */
|
|
2580
2663
|
secondaryHeading: {
|
|
2581
2664
|
/** The field from the data to use for the secondary heading */
|
|
2582
|
-
field
|
|
2665
|
+
field?: string;
|
|
2583
2666
|
/** Static value for the secondary heading */
|
|
2584
2667
|
constantValue?: TranslatableString;
|
|
2585
2668
|
/** Whether to use the static value for the secondary heading */
|
|
@@ -2592,7 +2675,7 @@ interface LocatorResultCardProps {
|
|
|
2592
2675
|
/** Settings for the tertiary heading of the card */
|
|
2593
2676
|
tertiaryHeading: {
|
|
2594
2677
|
/** The field from the data to use for the tertiary heading */
|
|
2595
|
-
field
|
|
2678
|
+
field?: string;
|
|
2596
2679
|
/** Static value for the tertiary heading */
|
|
2597
2680
|
constantValue?: TranslatableString;
|
|
2598
2681
|
/** Whether to use the static value for the tertiary heading */
|
|
@@ -2609,7 +2692,7 @@ interface LocatorResultCardProps {
|
|
|
2609
2692
|
/** Settings for the hours block */
|
|
2610
2693
|
hours: {
|
|
2611
2694
|
/** The field from the data to use for the hours */
|
|
2612
|
-
field
|
|
2695
|
+
field?: string;
|
|
2613
2696
|
/** Styles for the hours table */
|
|
2614
2697
|
table: Omit<HoursTableProps["styles"], "alignment">;
|
|
2615
2698
|
/** Whether the hours block is visible in live mode */
|
|
@@ -2638,7 +2721,7 @@ interface LocatorResultCardProps {
|
|
|
2638
2721
|
* The field from the data to use for the phone number
|
|
2639
2722
|
* @defaultValue "mainPhone"
|
|
2640
2723
|
*/
|
|
2641
|
-
field
|
|
2724
|
+
field?: string;
|
|
2642
2725
|
/**
|
|
2643
2726
|
* The format to use for the phone number
|
|
2644
2727
|
* @defaultValue "domestic"
|
|
@@ -2655,7 +2738,7 @@ interface LocatorResultCardProps {
|
|
|
2655
2738
|
* The field from the data to use for the email address
|
|
2656
2739
|
* @defaultValue "emails"
|
|
2657
2740
|
*/
|
|
2658
|
-
field
|
|
2741
|
+
field?: string;
|
|
2659
2742
|
/** Whether the email block is visible in live mode */
|
|
2660
2743
|
liveVisibility: boolean;
|
|
2661
2744
|
};
|
|
@@ -2664,7 +2747,7 @@ interface LocatorResultCardProps {
|
|
|
2664
2747
|
/**The field from the data to use for the services
|
|
2665
2748
|
* @defaultValue "services"
|
|
2666
2749
|
*/
|
|
2667
|
-
field
|
|
2750
|
+
field?: string;
|
|
2668
2751
|
/** Whether the services block is visible in live mode */
|
|
2669
2752
|
liveVisibility: boolean;
|
|
2670
2753
|
};
|
|
@@ -2697,7 +2780,7 @@ interface LocatorResultCardProps {
|
|
|
2697
2780
|
/** Settings for the image */
|
|
2698
2781
|
image: {
|
|
2699
2782
|
/** The field from the data to use for the image */
|
|
2700
|
-
field
|
|
2783
|
+
field?: string;
|
|
2701
2784
|
/** Static value for the image */
|
|
2702
2785
|
constantValue?: TranslatableAssetImage;
|
|
2703
2786
|
/** Whether to use the static value for the image */
|
|
@@ -2717,7 +2800,7 @@ interface Location {
|
|
|
2717
2800
|
neighborhood?: string;
|
|
2718
2801
|
slug?: string;
|
|
2719
2802
|
timezone: string;
|
|
2720
|
-
yextDisplayCoordinate?: Coordinate$
|
|
2803
|
+
yextDisplayCoordinate?: Coordinate$2;
|
|
2721
2804
|
ref_listings?: ListingType[];
|
|
2722
2805
|
[key: string]: any;
|
|
2723
2806
|
}
|
|
@@ -2806,57 +2889,13 @@ interface LocatorProps {
|
|
|
2806
2889
|
/**
|
|
2807
2890
|
* Available on Locator templates.
|
|
2808
2891
|
*/
|
|
2809
|
-
declare const LocatorComponent:
|
|
2810
|
-
props: LocatorProps;
|
|
2811
|
-
}>;
|
|
2892
|
+
declare const LocatorComponent: YextComponentConfig<LocatorProps>;
|
|
2812
2893
|
|
|
2813
2894
|
interface LocatorCategoryProps {
|
|
2814
2895
|
Locator: LocatorProps;
|
|
2815
2896
|
}
|
|
2816
2897
|
declare const LocatorCategoryComponents: {
|
|
2817
|
-
Locator:
|
|
2818
|
-
render: _puckeditor_core.PuckComponent<LocatorProps>;
|
|
2819
|
-
label?: string;
|
|
2820
|
-
defaultProps?: LocatorProps | undefined;
|
|
2821
|
-
fields?: _puckeditor_core.Fields<LocatorProps, {}> | undefined;
|
|
2822
|
-
permissions?: Partial<_puckeditor_core.Permissions>;
|
|
2823
|
-
inline?: boolean;
|
|
2824
|
-
resolveFields?: ((data: Omit<_puckeditor_core.ComponentData<LocatorProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, params: {
|
|
2825
|
-
changed: Partial<Record<keyof LocatorProps, boolean> & {
|
|
2826
|
-
id: string;
|
|
2827
|
-
}>;
|
|
2828
|
-
fields: _puckeditor_core.Fields<LocatorProps, {}>;
|
|
2829
|
-
lastFields: _puckeditor_core.Fields<LocatorProps, {}>;
|
|
2830
|
-
lastData: Omit<_puckeditor_core.ComponentData<LocatorProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type"> | null;
|
|
2831
|
-
metadata: _puckeditor_core.ComponentMetadata;
|
|
2832
|
-
appState: _puckeditor_core.AppState;
|
|
2833
|
-
parent: _puckeditor_core.ComponentData | null;
|
|
2834
|
-
}) => _puckeditor_core.Fields<LocatorProps, {}> | Promise<_puckeditor_core.Fields<LocatorProps, {}>>) | undefined;
|
|
2835
|
-
resolveData?: ((data: Omit<_puckeditor_core.ComponentData<LocatorProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, params: {
|
|
2836
|
-
changed: Partial<Record<keyof LocatorProps, boolean> & {
|
|
2837
|
-
id: string;
|
|
2838
|
-
}>;
|
|
2839
|
-
lastData: Omit<_puckeditor_core.ComponentData<LocatorProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type"> | null;
|
|
2840
|
-
metadata: _puckeditor_core.ComponentMetadata;
|
|
2841
|
-
trigger: _puckeditor_core.ResolveDataTrigger;
|
|
2842
|
-
parent: _puckeditor_core.ComponentData | null;
|
|
2843
|
-
}) => (Omit<Omit<_puckeditor_core.ComponentData<LocatorProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, "props"> & {
|
|
2844
|
-
props?: Partial<LocatorProps> | undefined;
|
|
2845
|
-
}) | Promise<Omit<Omit<_puckeditor_core.ComponentData<LocatorProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, "props"> & {
|
|
2846
|
-
props?: Partial<LocatorProps> | undefined;
|
|
2847
|
-
}>) | undefined;
|
|
2848
|
-
resolvePermissions?: ((data: Omit<_puckeditor_core.ComponentData<LocatorProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type">, params: {
|
|
2849
|
-
changed: Partial<Record<keyof LocatorProps, boolean> & {
|
|
2850
|
-
id: string;
|
|
2851
|
-
}>;
|
|
2852
|
-
lastPermissions: Partial<_puckeditor_core.Permissions>;
|
|
2853
|
-
permissions: Partial<_puckeditor_core.Permissions>;
|
|
2854
|
-
appState: _puckeditor_core.AppState;
|
|
2855
|
-
lastData: Omit<_puckeditor_core.ComponentData<LocatorProps, string, Record<string, _puckeditor_core.DefaultComponentProps>>, "type"> | null;
|
|
2856
|
-
parent: _puckeditor_core.ComponentData | null;
|
|
2857
|
-
}) => Promise<Partial<_puckeditor_core.Permissions>> | Partial<_puckeditor_core.Permissions>) | undefined;
|
|
2858
|
-
metadata?: _puckeditor_core.ComponentMetadata;
|
|
2859
|
-
} & _puckeditor_core.ComponentConfigExtensions;
|
|
2898
|
+
Locator: YextComponentConfig<LocatorProps>;
|
|
2860
2899
|
};
|
|
2861
2900
|
declare const LocatorCategory: (keyof LocatorCategoryProps)[];
|
|
2862
2901
|
|
|
@@ -7916,20 +7955,79 @@ declare const SlotsCategoryComponents: {
|
|
|
7916
7955
|
};
|
|
7917
7956
|
declare const SlotsCategory: (keyof SlotsCategoryProps)[];
|
|
7918
7957
|
|
|
7958
|
+
interface MainContentProps {
|
|
7959
|
+
content: Slot;
|
|
7960
|
+
}
|
|
7961
|
+
|
|
7919
7962
|
interface MainConfigProps extends PageSectionCategoryProps, DeprecatedCategoryProps, OtherCategoryProps, AdvancedCoreInfoCategoryProps, SlotsCategoryProps {
|
|
7963
|
+
MainContent: MainContentProps;
|
|
7920
7964
|
}
|
|
7921
7965
|
declare const mainConfig: Config<MainConfigProps>;
|
|
7922
7966
|
|
|
7923
7967
|
interface DirectoryConfigProps extends DirectoryCategoryProps, SlotsCategoryProps, DeprecatedCategoryProps, OtherCategoryProps {
|
|
7924
7968
|
BannerSection: BannerSectionProps;
|
|
7969
|
+
MainContent: MainContentProps;
|
|
7925
7970
|
}
|
|
7926
7971
|
declare const directoryConfig: Config<DirectoryConfigProps>;
|
|
7927
7972
|
|
|
7928
7973
|
interface LocatorConfigProps extends LocatorCategoryProps, SlotsCategoryProps, DeprecatedCategoryProps, OtherCategoryProps {
|
|
7929
7974
|
BannerSection: BannerSectionProps;
|
|
7975
|
+
MainContent: MainContentProps;
|
|
7930
7976
|
}
|
|
7931
7977
|
declare const locatorConfig: Config<LocatorConfigProps>;
|
|
7932
7978
|
|
|
7979
|
+
type Coordinate = {
|
|
7980
|
+
latitude?: number;
|
|
7981
|
+
longitude?: number;
|
|
7982
|
+
};
|
|
7983
|
+
type NearbyLocationDoc = {
|
|
7984
|
+
/** The entity id of the location */
|
|
7985
|
+
id?: string;
|
|
7986
|
+
/** The name of the location */
|
|
7987
|
+
name?: string;
|
|
7988
|
+
/** The hours of the location */
|
|
7989
|
+
hours?: HoursType;
|
|
7990
|
+
/** The address of the location */
|
|
7991
|
+
address?: AddressType;
|
|
7992
|
+
/** The timezone of the location */
|
|
7993
|
+
timezone?: string;
|
|
7994
|
+
/** The phone number of the location */
|
|
7995
|
+
mainPhone?: string;
|
|
7996
|
+
yextDisplayCoordinate?: Coordinate;
|
|
7997
|
+
geocodedCoordinate?: Coordinate;
|
|
7998
|
+
};
|
|
7999
|
+
type NearbyLocationsResponse = {
|
|
8000
|
+
meta?: {
|
|
8001
|
+
uuid?: string;
|
|
8002
|
+
errors?: unknown[];
|
|
8003
|
+
};
|
|
8004
|
+
response: {
|
|
8005
|
+
/** The entity data for the nearby locations. */
|
|
8006
|
+
docs: NearbyLocationDoc[];
|
|
8007
|
+
/** The number of nearby locations returned. */
|
|
8008
|
+
count: number;
|
|
8009
|
+
};
|
|
8010
|
+
};
|
|
8011
|
+
type useNearbyLocationsOptions = {
|
|
8012
|
+
streamDocument: StreamDocument;
|
|
8013
|
+
/** The latitude of the location. */
|
|
8014
|
+
latitude?: number;
|
|
8015
|
+
/** The longitude of the location. */
|
|
8016
|
+
longitude?: number;
|
|
8017
|
+
/** The maximum radius to search for nearby locations. */
|
|
8018
|
+
radiusMi: number;
|
|
8019
|
+
/** The maximum number of locations to return. */
|
|
8020
|
+
limit: number;
|
|
8021
|
+
/** Enable/disable the query. */
|
|
8022
|
+
enabled: boolean;
|
|
8023
|
+
/**
|
|
8024
|
+
* Optionally, provide a override for the content endpoint id.
|
|
8025
|
+
* Uses streamDocument._pageset.config.contentEndpointId by default.
|
|
8026
|
+
*/
|
|
8027
|
+
contentEndpointIdOverride?: string;
|
|
8028
|
+
};
|
|
8029
|
+
declare const useNearbyLocations: (options: useNearbyLocationsOptions) => UseQueryResult<NearbyLocationsResponse, Error>;
|
|
8030
|
+
|
|
7933
8031
|
type SectionContainerProps = {
|
|
7934
8032
|
background?: ThemeColor;
|
|
7935
8033
|
sectionHeading: {
|
|
@@ -7959,4 +8057,4 @@ declare const GTMBody: React__default.FC<{
|
|
|
7959
8057
|
children: React__default.ReactNode;
|
|
7960
8058
|
}>;
|
|
7961
8059
|
|
|
7962
|
-
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,
|
|
8060
|
+
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, type BasicSelectorField, BasicSelectorFieldOverride, Body, type BodyProps, BodyText, type BodyTextProps, type BreadcrumbLink, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, CTAGroup, type CTAGroupProps, type CTAVariant, CTAWrapper, type CTAWrapperProps, type CodeField, CodeFieldOverride, type ComponentField, ComponentFields, CopyrightMessageSlot, type CopyrightMessageSlotProps, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, type DateTimeSelectorField, DateTimeSelectorFieldOverride, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryProps, type DirectoryStyles, type DynamicOption, type DynamicOptionValueTypes, DynamicOptionsSelector, type DynamicOptionsSelectorType, 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 Font, type FontRegistry, type FontSizeSelectorField, FontSizeSelectorFieldOverride, 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, type NearbyLocationDoc, type NearbyLocationsResponse, 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, YextAutoField, 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, resolveBreadcrumbs, resolveComponentData, resolveDataFromParent, resolveLocalizedAssetImage, resolveUrlTemplate, resolveUrlTemplateOfChild, resolveYextEntityField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, toKilometers, useBackground, useDocument, useEntityFields, useNearbyLocations, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|