@yext/visual-editor 0.0.22 → 0.0.24
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 +47 -33
- package/dist/index.d.ts +47 -33
- package/dist/style.css +1 -1
- package/dist/visual-editor.cjs +61 -60
- package/dist/visual-editor.js +8002 -7148
- package/package.json +10 -10
- package/README.md +0 -25
package/dist/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
6
6
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
8
|
import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
|
|
9
|
-
import {
|
|
9
|
+
import { LinkType, AddressType, ImageType, CTA as CTA$1, Coordinate, GetDirectionsConfig, HoursType, DayOfWeekNames } from '@yext/pages-components';
|
|
10
10
|
import * as class_variance_authority_dist_types_js from 'class-variance-authority/dist/types.js';
|
|
11
11
|
|
|
12
12
|
declare const usePlatformBridgeDocument: () => any;
|
|
@@ -202,12 +202,29 @@ type EditorProps$1 = {
|
|
|
202
202
|
type VisualEditorProviderProps<T> = UniversalProps<T> & AllOrNothing<EditorProps$1>;
|
|
203
203
|
declare const VisualEditorProvider: <T>({ document, entityFields, tailwindConfig, children, }: VisualEditorProviderProps<T>) => react_jsx_runtime.JSX.Element;
|
|
204
204
|
|
|
205
|
+
/**
|
|
206
|
+
* Check that the string is a valid slug.
|
|
207
|
+
*
|
|
208
|
+
* @param content The content to check
|
|
209
|
+
* @return Boolean indicating if it's a valid slug or not
|
|
210
|
+
*/
|
|
211
|
+
declare const validateSlug: (content: string) => boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Normalizes the provided content by converting upper-case ones to lower case,
|
|
214
|
+
* replacing white spaces, '?', and '#', with a "-" and stripping all other illegal characters.
|
|
215
|
+
*
|
|
216
|
+
* @param content The content to normalize
|
|
217
|
+
* @return The normalized result
|
|
218
|
+
*/
|
|
219
|
+
declare const normalizeSlug: (content: string) => string;
|
|
220
|
+
|
|
205
221
|
type EditorProps = {
|
|
206
222
|
document: any;
|
|
207
223
|
componentRegistry: Map<string, Config<any>>;
|
|
208
224
|
themeConfig?: ThemeConfig;
|
|
225
|
+
localDev?: boolean;
|
|
209
226
|
};
|
|
210
|
-
declare const Editor: ({ document, componentRegistry, themeConfig, }: EditorProps) => react_jsx_runtime.JSX.Element;
|
|
227
|
+
declare const Editor: ({ document, componentRegistry, themeConfig, localDev, }: EditorProps) => react_jsx_runtime.JSX.Element;
|
|
211
228
|
|
|
212
229
|
type EntityFieldProps = {
|
|
213
230
|
displayName?: string;
|
|
@@ -239,7 +256,7 @@ declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttribu
|
|
|
239
256
|
declare const buttonVariants: (props?: ({
|
|
240
257
|
variant?: "link" | "primary" | null | undefined;
|
|
241
258
|
size?: "small" | "default" | "icon" | "large" | null | undefined;
|
|
242
|
-
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" |
|
|
259
|
+
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
243
260
|
borderRadius?: "default" | "none" | "large" | "medium" | "full" | null | undefined;
|
|
244
261
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
245
262
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -250,18 +267,19 @@ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAtt
|
|
|
250
267
|
interface CTAProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
251
268
|
label?: string;
|
|
252
269
|
link?: string;
|
|
270
|
+
linkType?: LinkType;
|
|
253
271
|
variant?: ButtonProps["variant"];
|
|
254
272
|
size?: ButtonProps["size"];
|
|
255
273
|
borderRadius?: ButtonProps["borderRadius"];
|
|
256
274
|
fontSize?: ButtonProps["fontSize"];
|
|
257
275
|
}
|
|
258
276
|
declare const CTA: {
|
|
259
|
-
({ label, link, variant, size, borderRadius, className, fontSize, }: CTAProps): react_jsx_runtime_js.JSX.Element;
|
|
277
|
+
({ label, link, linkType, variant, size, borderRadius, className, fontSize, }: CTAProps): react_jsx_runtime_js.JSX.Element;
|
|
260
278
|
displayName: string;
|
|
261
279
|
};
|
|
262
280
|
|
|
263
281
|
declare const headingVariants: (props?: ({
|
|
264
|
-
level?: 2 | 1 | 3 |
|
|
282
|
+
level?: 2 | 1 | 3 | 5 | 4 | 6 | null | undefined;
|
|
265
283
|
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
266
284
|
weight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
|
|
267
285
|
color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
@@ -283,9 +301,9 @@ declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefA
|
|
|
283
301
|
|
|
284
302
|
type AddressProps = {
|
|
285
303
|
address: YextEntityField<AddressType>;
|
|
286
|
-
getDirectionsProvider: GetDirectionsConfig["provider"];
|
|
287
304
|
alignment: "items-start" | "items-center";
|
|
288
305
|
padding: VariantProps<typeof sectionVariants>["padding"];
|
|
306
|
+
showGetDirections: boolean;
|
|
289
307
|
};
|
|
290
308
|
declare const AddressComponent: ComponentConfig<AddressProps>;
|
|
291
309
|
|
|
@@ -321,12 +339,14 @@ interface CardProps {
|
|
|
321
339
|
fontSize: HeadingProps["fontSize"];
|
|
322
340
|
color: HeadingProps["color"];
|
|
323
341
|
transform: HeadingProps["transform"];
|
|
342
|
+
level: HeadingLevel;
|
|
324
343
|
};
|
|
325
344
|
subheading: {
|
|
326
345
|
text: YextEntityField<string>;
|
|
327
346
|
fontSize: HeadingProps["fontSize"];
|
|
328
347
|
color: HeadingProps["color"];
|
|
329
348
|
transform: HeadingProps["transform"];
|
|
349
|
+
level: HeadingLevel;
|
|
330
350
|
};
|
|
331
351
|
body: {
|
|
332
352
|
text: YextEntityField<string>;
|
|
@@ -343,8 +363,9 @@ interface CardProps {
|
|
|
343
363
|
cta: {
|
|
344
364
|
entityField: YextEntityField<CTAProps>;
|
|
345
365
|
variant: CTAProps["variant"];
|
|
346
|
-
fontSize:
|
|
366
|
+
fontSize: CTAProps["fontSize"];
|
|
347
367
|
};
|
|
368
|
+
backgroundColor: "bg-card-backgroundColor" | "bg-palette-primary" | "bg-palette-secondary" | "bg-palette-accent" | "bg-palette-text" | "bg-palette-background";
|
|
348
369
|
}
|
|
349
370
|
declare const CardComponent: ComponentConfig<CardProps>;
|
|
350
371
|
|
|
@@ -359,7 +380,7 @@ interface CTAWrapperProps {
|
|
|
359
380
|
declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
|
|
360
381
|
|
|
361
382
|
declare const emailsVariants: (props?: ({
|
|
362
|
-
fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" |
|
|
383
|
+
fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "medium" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
363
384
|
fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
|
|
364
385
|
color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
365
386
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
@@ -370,15 +391,13 @@ interface EmailsProps extends VariantProps<typeof emailsVariants> {
|
|
|
370
391
|
}
|
|
371
392
|
declare const EmailsComponent: ComponentConfig<EmailsProps>;
|
|
372
393
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexContainerVariants> {
|
|
381
|
-
renderDropZone?: any;
|
|
394
|
+
interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
395
|
+
gap: number;
|
|
396
|
+
justifyContent: "start" | "center" | "end";
|
|
397
|
+
direction: "row" | "column";
|
|
398
|
+
wrap: "wrap" | "nowrap";
|
|
399
|
+
verticalPadding: number;
|
|
400
|
+
horizontalPadding: number;
|
|
382
401
|
}
|
|
383
402
|
declare const FlexContainerComponent: ComponentConfig<FlexContainerProps>;
|
|
384
403
|
|
|
@@ -391,7 +410,6 @@ interface FooterProps extends VariantProps<typeof footerVariants> {
|
|
|
391
410
|
};
|
|
392
411
|
links: {
|
|
393
412
|
cta: YextEntityField<CTA$1>;
|
|
394
|
-
id?: string;
|
|
395
413
|
}[];
|
|
396
414
|
}
|
|
397
415
|
declare const Footer: ComponentConfig<FooterProps>;
|
|
@@ -406,24 +424,21 @@ type GetDirectionsProps = {
|
|
|
406
424
|
};
|
|
407
425
|
declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
|
|
408
426
|
|
|
409
|
-
declare const
|
|
427
|
+
declare const outerBackgroundVariants: (props?: ({
|
|
410
428
|
backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
411
|
-
maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
|
|
412
429
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
413
|
-
declare const
|
|
414
|
-
|
|
415
|
-
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
416
|
-
declare const columnVariants: (props?: ({
|
|
417
|
-
verticalAlignment?: "end" | "start" | "center" | "spaceBetween" | null | undefined;
|
|
430
|
+
declare const innerBackgroundVariants: (props?: ({
|
|
431
|
+
maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
|
|
418
432
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
419
|
-
interface ColumnProps
|
|
433
|
+
interface ColumnProps {
|
|
434
|
+
justifyContent: "center" | "start" | "end" | "spaceBetween";
|
|
420
435
|
span?: number;
|
|
421
436
|
}
|
|
422
|
-
interface GridSectionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof
|
|
423
|
-
|
|
424
|
-
|
|
437
|
+
interface GridSectionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof outerBackgroundVariants>, VariantProps<typeof innerBackgroundVariants> {
|
|
438
|
+
gap: number;
|
|
439
|
+
verticalPadding: number;
|
|
440
|
+
horizontalPadding: number;
|
|
425
441
|
columns: ColumnProps[];
|
|
426
|
-
renderDropZone?: any;
|
|
427
442
|
}
|
|
428
443
|
declare const GridSectionComponent: ComponentConfig<GridSectionProps>;
|
|
429
444
|
|
|
@@ -436,7 +451,6 @@ interface HeaderProps extends VariantProps<typeof headerVariants> {
|
|
|
436
451
|
};
|
|
437
452
|
links: {
|
|
438
453
|
cta: YextEntityField<CTA$1>;
|
|
439
|
-
id?: string;
|
|
440
454
|
}[];
|
|
441
455
|
}
|
|
442
456
|
declare const Header: ComponentConfig<HeaderProps>;
|
|
@@ -500,7 +514,7 @@ interface PromoProps {
|
|
|
500
514
|
cta: {
|
|
501
515
|
entityField: YextEntityField<CTAProps>;
|
|
502
516
|
variant: CTAProps["variant"];
|
|
503
|
-
fontSize:
|
|
517
|
+
fontSize: CTAProps["fontSize"];
|
|
504
518
|
};
|
|
505
519
|
}
|
|
506
520
|
declare const PromoComponent: ComponentConfig<PromoProps>;
|
|
@@ -517,4 +531,4 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
|
|
|
517
531
|
}
|
|
518
532
|
declare const TextListComponent: ComponentConfig<TextListProps>;
|
|
519
533
|
|
|
520
|
-
export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, 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 FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, 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, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getFontWeightOptions, getFontWeightOverrideOptions, headingVariants, resolveYextEntityField, sectionVariants, themeMangerCn, themeMangerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig };
|
|
534
|
+
export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, 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 FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, 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, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, type YextFieldDefinition, type YextSchemaField, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getFontWeightOptions, getFontWeightOverrideOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeMangerCn, themeMangerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, validateSlug };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
6
6
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
8
|
import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
|
|
9
|
-
import {
|
|
9
|
+
import { LinkType, AddressType, ImageType, CTA as CTA$1, Coordinate, GetDirectionsConfig, HoursType, DayOfWeekNames } from '@yext/pages-components';
|
|
10
10
|
import * as class_variance_authority_dist_types_js from 'class-variance-authority/dist/types.js';
|
|
11
11
|
|
|
12
12
|
declare const usePlatformBridgeDocument: () => any;
|
|
@@ -202,12 +202,29 @@ type EditorProps$1 = {
|
|
|
202
202
|
type VisualEditorProviderProps<T> = UniversalProps<T> & AllOrNothing<EditorProps$1>;
|
|
203
203
|
declare const VisualEditorProvider: <T>({ document, entityFields, tailwindConfig, children, }: VisualEditorProviderProps<T>) => react_jsx_runtime.JSX.Element;
|
|
204
204
|
|
|
205
|
+
/**
|
|
206
|
+
* Check that the string is a valid slug.
|
|
207
|
+
*
|
|
208
|
+
* @param content The content to check
|
|
209
|
+
* @return Boolean indicating if it's a valid slug or not
|
|
210
|
+
*/
|
|
211
|
+
declare const validateSlug: (content: string) => boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Normalizes the provided content by converting upper-case ones to lower case,
|
|
214
|
+
* replacing white spaces, '?', and '#', with a "-" and stripping all other illegal characters.
|
|
215
|
+
*
|
|
216
|
+
* @param content The content to normalize
|
|
217
|
+
* @return The normalized result
|
|
218
|
+
*/
|
|
219
|
+
declare const normalizeSlug: (content: string) => string;
|
|
220
|
+
|
|
205
221
|
type EditorProps = {
|
|
206
222
|
document: any;
|
|
207
223
|
componentRegistry: Map<string, Config<any>>;
|
|
208
224
|
themeConfig?: ThemeConfig;
|
|
225
|
+
localDev?: boolean;
|
|
209
226
|
};
|
|
210
|
-
declare const Editor: ({ document, componentRegistry, themeConfig, }: EditorProps) => react_jsx_runtime.JSX.Element;
|
|
227
|
+
declare const Editor: ({ document, componentRegistry, themeConfig, localDev, }: EditorProps) => react_jsx_runtime.JSX.Element;
|
|
211
228
|
|
|
212
229
|
type EntityFieldProps = {
|
|
213
230
|
displayName?: string;
|
|
@@ -239,7 +256,7 @@ declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttribu
|
|
|
239
256
|
declare const buttonVariants: (props?: ({
|
|
240
257
|
variant?: "link" | "primary" | null | undefined;
|
|
241
258
|
size?: "small" | "default" | "icon" | "large" | null | undefined;
|
|
242
|
-
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" |
|
|
259
|
+
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
243
260
|
borderRadius?: "default" | "none" | "large" | "medium" | "full" | null | undefined;
|
|
244
261
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
245
262
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -250,18 +267,19 @@ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAtt
|
|
|
250
267
|
interface CTAProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
251
268
|
label?: string;
|
|
252
269
|
link?: string;
|
|
270
|
+
linkType?: LinkType;
|
|
253
271
|
variant?: ButtonProps["variant"];
|
|
254
272
|
size?: ButtonProps["size"];
|
|
255
273
|
borderRadius?: ButtonProps["borderRadius"];
|
|
256
274
|
fontSize?: ButtonProps["fontSize"];
|
|
257
275
|
}
|
|
258
276
|
declare const CTA: {
|
|
259
|
-
({ label, link, variant, size, borderRadius, className, fontSize, }: CTAProps): react_jsx_runtime_js.JSX.Element;
|
|
277
|
+
({ label, link, linkType, variant, size, borderRadius, className, fontSize, }: CTAProps): react_jsx_runtime_js.JSX.Element;
|
|
260
278
|
displayName: string;
|
|
261
279
|
};
|
|
262
280
|
|
|
263
281
|
declare const headingVariants: (props?: ({
|
|
264
|
-
level?: 2 | 1 | 3 |
|
|
282
|
+
level?: 2 | 1 | 3 | 5 | 4 | 6 | null | undefined;
|
|
265
283
|
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
266
284
|
weight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
|
|
267
285
|
color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
@@ -283,9 +301,9 @@ declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefA
|
|
|
283
301
|
|
|
284
302
|
type AddressProps = {
|
|
285
303
|
address: YextEntityField<AddressType>;
|
|
286
|
-
getDirectionsProvider: GetDirectionsConfig["provider"];
|
|
287
304
|
alignment: "items-start" | "items-center";
|
|
288
305
|
padding: VariantProps<typeof sectionVariants>["padding"];
|
|
306
|
+
showGetDirections: boolean;
|
|
289
307
|
};
|
|
290
308
|
declare const AddressComponent: ComponentConfig<AddressProps>;
|
|
291
309
|
|
|
@@ -321,12 +339,14 @@ interface CardProps {
|
|
|
321
339
|
fontSize: HeadingProps["fontSize"];
|
|
322
340
|
color: HeadingProps["color"];
|
|
323
341
|
transform: HeadingProps["transform"];
|
|
342
|
+
level: HeadingLevel;
|
|
324
343
|
};
|
|
325
344
|
subheading: {
|
|
326
345
|
text: YextEntityField<string>;
|
|
327
346
|
fontSize: HeadingProps["fontSize"];
|
|
328
347
|
color: HeadingProps["color"];
|
|
329
348
|
transform: HeadingProps["transform"];
|
|
349
|
+
level: HeadingLevel;
|
|
330
350
|
};
|
|
331
351
|
body: {
|
|
332
352
|
text: YextEntityField<string>;
|
|
@@ -343,8 +363,9 @@ interface CardProps {
|
|
|
343
363
|
cta: {
|
|
344
364
|
entityField: YextEntityField<CTAProps>;
|
|
345
365
|
variant: CTAProps["variant"];
|
|
346
|
-
fontSize:
|
|
366
|
+
fontSize: CTAProps["fontSize"];
|
|
347
367
|
};
|
|
368
|
+
backgroundColor: "bg-card-backgroundColor" | "bg-palette-primary" | "bg-palette-secondary" | "bg-palette-accent" | "bg-palette-text" | "bg-palette-background";
|
|
348
369
|
}
|
|
349
370
|
declare const CardComponent: ComponentConfig<CardProps>;
|
|
350
371
|
|
|
@@ -359,7 +380,7 @@ interface CTAWrapperProps {
|
|
|
359
380
|
declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
|
|
360
381
|
|
|
361
382
|
declare const emailsVariants: (props?: ({
|
|
362
|
-
fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" |
|
|
383
|
+
fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "medium" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
363
384
|
fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
|
|
364
385
|
color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
365
386
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
@@ -370,15 +391,13 @@ interface EmailsProps extends VariantProps<typeof emailsVariants> {
|
|
|
370
391
|
}
|
|
371
392
|
declare const EmailsComponent: ComponentConfig<EmailsProps>;
|
|
372
393
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexContainerVariants> {
|
|
381
|
-
renderDropZone?: any;
|
|
394
|
+
interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
395
|
+
gap: number;
|
|
396
|
+
justifyContent: "start" | "center" | "end";
|
|
397
|
+
direction: "row" | "column";
|
|
398
|
+
wrap: "wrap" | "nowrap";
|
|
399
|
+
verticalPadding: number;
|
|
400
|
+
horizontalPadding: number;
|
|
382
401
|
}
|
|
383
402
|
declare const FlexContainerComponent: ComponentConfig<FlexContainerProps>;
|
|
384
403
|
|
|
@@ -391,7 +410,6 @@ interface FooterProps extends VariantProps<typeof footerVariants> {
|
|
|
391
410
|
};
|
|
392
411
|
links: {
|
|
393
412
|
cta: YextEntityField<CTA$1>;
|
|
394
|
-
id?: string;
|
|
395
413
|
}[];
|
|
396
414
|
}
|
|
397
415
|
declare const Footer: ComponentConfig<FooterProps>;
|
|
@@ -406,24 +424,21 @@ type GetDirectionsProps = {
|
|
|
406
424
|
};
|
|
407
425
|
declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
|
|
408
426
|
|
|
409
|
-
declare const
|
|
427
|
+
declare const outerBackgroundVariants: (props?: ({
|
|
410
428
|
backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
411
|
-
maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
|
|
412
429
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
413
|
-
declare const
|
|
414
|
-
|
|
415
|
-
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
416
|
-
declare const columnVariants: (props?: ({
|
|
417
|
-
verticalAlignment?: "end" | "start" | "center" | "spaceBetween" | null | undefined;
|
|
430
|
+
declare const innerBackgroundVariants: (props?: ({
|
|
431
|
+
maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
|
|
418
432
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
419
|
-
interface ColumnProps
|
|
433
|
+
interface ColumnProps {
|
|
434
|
+
justifyContent: "center" | "start" | "end" | "spaceBetween";
|
|
420
435
|
span?: number;
|
|
421
436
|
}
|
|
422
|
-
interface GridSectionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof
|
|
423
|
-
|
|
424
|
-
|
|
437
|
+
interface GridSectionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof outerBackgroundVariants>, VariantProps<typeof innerBackgroundVariants> {
|
|
438
|
+
gap: number;
|
|
439
|
+
verticalPadding: number;
|
|
440
|
+
horizontalPadding: number;
|
|
425
441
|
columns: ColumnProps[];
|
|
426
|
-
renderDropZone?: any;
|
|
427
442
|
}
|
|
428
443
|
declare const GridSectionComponent: ComponentConfig<GridSectionProps>;
|
|
429
444
|
|
|
@@ -436,7 +451,6 @@ interface HeaderProps extends VariantProps<typeof headerVariants> {
|
|
|
436
451
|
};
|
|
437
452
|
links: {
|
|
438
453
|
cta: YextEntityField<CTA$1>;
|
|
439
|
-
id?: string;
|
|
440
454
|
}[];
|
|
441
455
|
}
|
|
442
456
|
declare const Header: ComponentConfig<HeaderProps>;
|
|
@@ -500,7 +514,7 @@ interface PromoProps {
|
|
|
500
514
|
cta: {
|
|
501
515
|
entityField: YextEntityField<CTAProps>;
|
|
502
516
|
variant: CTAProps["variant"];
|
|
503
|
-
fontSize:
|
|
517
|
+
fontSize: CTAProps["fontSize"];
|
|
504
518
|
};
|
|
505
519
|
}
|
|
506
520
|
declare const PromoComponent: ComponentConfig<PromoProps>;
|
|
@@ -517,4 +531,4 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
|
|
|
517
531
|
}
|
|
518
532
|
declare const TextListComponent: ComponentConfig<TextListProps>;
|
|
519
533
|
|
|
520
|
-
export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, 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 FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, 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, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getFontWeightOptions, getFontWeightOverrideOptions, headingVariants, resolveYextEntityField, sectionVariants, themeMangerCn, themeMangerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig };
|
|
534
|
+
export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, 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 FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, 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, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, type YextFieldDefinition, type YextSchemaField, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getFontWeightOptions, getFontWeightOverrideOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeMangerCn, themeMangerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, validateSlug };
|