@yext/visual-editor 0.0.27 → 0.0.29
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 +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/visual-editor.cjs +48 -48
- package/dist/visual-editor.js +10990 -10878
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -239,6 +239,13 @@ declare const getSpacingOptions: () => {
|
|
|
239
239
|
|
|
240
240
|
declare const applyAnalytics: (document: Record<string, any>) => string | undefined;
|
|
241
241
|
|
|
242
|
+
type RootConfig = {
|
|
243
|
+
title?: string;
|
|
244
|
+
description?: string;
|
|
245
|
+
[key: string]: any;
|
|
246
|
+
};
|
|
247
|
+
declare function getPageMetadata(document: Record<string, any>): RootConfig;
|
|
248
|
+
|
|
242
249
|
type EditorProps = {
|
|
243
250
|
document: any;
|
|
244
251
|
componentRegistry: Map<string, Config<any>>;
|
|
@@ -409,13 +416,13 @@ interface CTAWrapperProps {
|
|
|
409
416
|
declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
|
|
410
417
|
|
|
411
418
|
declare const emailsVariants: (props?: ({
|
|
412
|
-
fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" |
|
|
419
|
+
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
413
420
|
fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
|
|
414
421
|
color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
422
|
+
includeHyperlink?: boolean | null | undefined;
|
|
415
423
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
416
424
|
interface EmailsProps extends VariantProps<typeof emailsVariants> {
|
|
417
425
|
list: YextEntityField<string[]>;
|
|
418
|
-
includeHyperlink: boolean;
|
|
419
426
|
listLength: number;
|
|
420
427
|
}
|
|
421
428
|
declare const EmailsComponent: ComponentConfig<EmailsProps>;
|
|
@@ -558,4 +565,9 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
|
|
|
558
565
|
}
|
|
559
566
|
declare const TextListComponent: ComponentConfig<TextListProps>;
|
|
560
567
|
|
|
561
|
-
|
|
568
|
+
type BreadcrumbsProps = {
|
|
569
|
+
separator?: string;
|
|
570
|
+
};
|
|
571
|
+
declare const Breadcrumbs: ComponentConfig<BreadcrumbsProps>;
|
|
572
|
+
|
|
573
|
+
export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, BorderRadiusSelector, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, CardComponent as Card, type CardProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as Flex, type FlexProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as Grid, type GridProps, Header, type HeaderProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps, HoursStatusComponent as HoursStatus, type HoursStatusProps, HoursTableComponent as HoursTable, type HoursTableProps, ImageWrapperComponent as ImageWrapper, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent as Phone, type PhoneProps, PromoComponent as Promo, type PromoProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, SpacingSelector, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, type YextFieldDefinition, type YextSchemaField, applyAnalytics, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getBorderRadiusOptions, getFontSizeOptions, getFontWeightOptions, getFontWeightOverrideOptions, getPageMetadata, getSpacingOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, validateSlug };
|
package/dist/index.d.ts
CHANGED
|
@@ -239,6 +239,13 @@ declare const getSpacingOptions: () => {
|
|
|
239
239
|
|
|
240
240
|
declare const applyAnalytics: (document: Record<string, any>) => string | undefined;
|
|
241
241
|
|
|
242
|
+
type RootConfig = {
|
|
243
|
+
title?: string;
|
|
244
|
+
description?: string;
|
|
245
|
+
[key: string]: any;
|
|
246
|
+
};
|
|
247
|
+
declare function getPageMetadata(document: Record<string, any>): RootConfig;
|
|
248
|
+
|
|
242
249
|
type EditorProps = {
|
|
243
250
|
document: any;
|
|
244
251
|
componentRegistry: Map<string, Config<any>>;
|
|
@@ -409,13 +416,13 @@ interface CTAWrapperProps {
|
|
|
409
416
|
declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
|
|
410
417
|
|
|
411
418
|
declare const emailsVariants: (props?: ({
|
|
412
|
-
fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" |
|
|
419
|
+
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
413
420
|
fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
|
|
414
421
|
color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
422
|
+
includeHyperlink?: boolean | null | undefined;
|
|
415
423
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
416
424
|
interface EmailsProps extends VariantProps<typeof emailsVariants> {
|
|
417
425
|
list: YextEntityField<string[]>;
|
|
418
|
-
includeHyperlink: boolean;
|
|
419
426
|
listLength: number;
|
|
420
427
|
}
|
|
421
428
|
declare const EmailsComponent: ComponentConfig<EmailsProps>;
|
|
@@ -558,4 +565,9 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
|
|
|
558
565
|
}
|
|
559
566
|
declare const TextListComponent: ComponentConfig<TextListProps>;
|
|
560
567
|
|
|
561
|
-
|
|
568
|
+
type BreadcrumbsProps = {
|
|
569
|
+
separator?: string;
|
|
570
|
+
};
|
|
571
|
+
declare const Breadcrumbs: ComponentConfig<BreadcrumbsProps>;
|
|
572
|
+
|
|
573
|
+
export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, BorderRadiusSelector, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, CardComponent as Card, type CardProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as Flex, type FlexProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as Grid, type GridProps, Header, type HeaderProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps, HoursStatusComponent as HoursStatus, type HoursStatusProps, HoursTableComponent as HoursTable, type HoursTableProps, ImageWrapperComponent as ImageWrapper, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent as Phone, type PhoneProps, PromoComponent as Promo, type PromoProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, SpacingSelector, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, type YextFieldDefinition, type YextSchemaField, applyAnalytics, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getBorderRadiusOptions, getFontSizeOptions, getFontWeightOptions, getFontWeightOverrideOptions, getPageMetadata, getSpacingOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, validateSlug };
|