@yext/visual-editor 0.0.24 → 0.0.26
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 +55 -28
- package/dist/index.d.ts +55 -28
- package/dist/style.css +1 -1
- package/dist/visual-editor.cjs +67 -54
- package/dist/visual-editor.js +8792 -6644
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -141,7 +141,7 @@ declare const YextEntityFieldSelector: <T extends Record<string, any>, U>(props:
|
|
|
141
141
|
|
|
142
142
|
declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField<T>) => T | undefined;
|
|
143
143
|
|
|
144
|
-
declare const
|
|
144
|
+
declare const themeManagerTwMergeConfiguration: {
|
|
145
145
|
extend: {
|
|
146
146
|
classGroups: {
|
|
147
147
|
"font-family": {
|
|
@@ -156,8 +156,14 @@ declare const themeMangerTwMergeConfiguration: {
|
|
|
156
156
|
"text-color": {
|
|
157
157
|
text: ((value: string) => boolean)[];
|
|
158
158
|
}[];
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
gap: {
|
|
160
|
+
gap: ((value: string) => boolean)[];
|
|
161
|
+
}[];
|
|
162
|
+
py: {
|
|
163
|
+
py: ((value: string) => boolean)[];
|
|
164
|
+
}[];
|
|
165
|
+
px: {
|
|
166
|
+
px: ((value: string) => boolean)[];
|
|
161
167
|
}[];
|
|
162
168
|
"max-w": {
|
|
163
169
|
"max-w": ((value: string) => boolean)[];
|
|
@@ -171,7 +177,7 @@ declare const themeMangerTwMergeConfiguration: {
|
|
|
171
177
|
};
|
|
172
178
|
};
|
|
173
179
|
};
|
|
174
|
-
declare function
|
|
180
|
+
declare function themeManagerCn(...inputs: ClassValue[]): string;
|
|
175
181
|
|
|
176
182
|
type FontRegistry = Record<string, FontSpecification>;
|
|
177
183
|
type FontSpecification = {
|
|
@@ -218,13 +224,29 @@ declare const validateSlug: (content: string) => boolean;
|
|
|
218
224
|
*/
|
|
219
225
|
declare const normalizeSlug: (content: string) => string;
|
|
220
226
|
|
|
227
|
+
declare const getFontSizeOptions: (includeLargeSizes?: boolean) => {
|
|
228
|
+
label: string;
|
|
229
|
+
value: string;
|
|
230
|
+
}[];
|
|
231
|
+
declare const getBorderRadiusOptions: () => {
|
|
232
|
+
label: string;
|
|
233
|
+
value: string;
|
|
234
|
+
}[];
|
|
235
|
+
declare const getSpacingOptions: () => {
|
|
236
|
+
label: string;
|
|
237
|
+
value: string;
|
|
238
|
+
}[];
|
|
239
|
+
|
|
240
|
+
declare const applyAnalytics: (document: Record<string, any>) => string | undefined;
|
|
241
|
+
|
|
221
242
|
type EditorProps = {
|
|
222
243
|
document: any;
|
|
223
244
|
componentRegistry: Map<string, Config<any>>;
|
|
224
245
|
themeConfig?: ThemeConfig;
|
|
225
246
|
localDev?: boolean;
|
|
247
|
+
forceThemeMode?: boolean;
|
|
226
248
|
};
|
|
227
|
-
declare const Editor: ({ document, componentRegistry, themeConfig, localDev, }: EditorProps) => react_jsx_runtime.JSX.Element;
|
|
249
|
+
declare const Editor: ({ document, componentRegistry, themeConfig, localDev, forceThemeMode, }: EditorProps) => react_jsx_runtime.JSX.Element;
|
|
228
250
|
|
|
229
251
|
type EntityFieldProps = {
|
|
230
252
|
displayName?: string;
|
|
@@ -241,7 +263,11 @@ type NumberFieldWithDefaultOptionProps = {
|
|
|
241
263
|
};
|
|
242
264
|
declare const NumberFieldWithDefaultOption: ({ label, defaultCustomValue, }: NumberFieldWithDefaultOptionProps) => CustomField<NumberOrDefault>;
|
|
243
265
|
|
|
244
|
-
declare const FontSizeSelector: (label?: string) => Field;
|
|
266
|
+
declare const FontSizeSelector: (label?: string, includeLargeSizes?: boolean) => Field;
|
|
267
|
+
|
|
268
|
+
declare const BorderRadiusSelector: (label?: string) => Field;
|
|
269
|
+
|
|
270
|
+
declare const SpacingSelector: (spacingType: "padding" | "gap", label?: string) => Field;
|
|
245
271
|
|
|
246
272
|
declare const bodyVariants: (props?: ({
|
|
247
273
|
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
@@ -255,9 +281,9 @@ declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttribu
|
|
|
255
281
|
|
|
256
282
|
declare const buttonVariants: (props?: ({
|
|
257
283
|
variant?: "link" | "primary" | null | undefined;
|
|
258
|
-
size?: "small" | "
|
|
284
|
+
size?: "small" | "icon" | "large" | null | undefined;
|
|
259
285
|
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
260
|
-
borderRadius?: "default" | "none" | "
|
|
286
|
+
borderRadius?: "default" | "none" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "md" | "full" | null | undefined;
|
|
261
287
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
262
288
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
263
289
|
asChild?: boolean;
|
|
@@ -323,9 +349,9 @@ interface BodyTextProps extends BodyProps {
|
|
|
323
349
|
declare const BodyTextComponent: ComponentConfig<BodyTextProps>;
|
|
324
350
|
|
|
325
351
|
declare const imageWrapperVariants: (props?: ({
|
|
326
|
-
size?: "small" | "large" | "
|
|
352
|
+
size?: "small" | "large" | "full" | "medium" | null | undefined;
|
|
327
353
|
aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
|
|
328
|
-
rounded?: "small" | "none" | "large" | "
|
|
354
|
+
rounded?: "small" | "none" | "large" | "full" | "medium" | null | undefined;
|
|
329
355
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
330
356
|
interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
|
|
331
357
|
image: YextEntityField<ImageType>;
|
|
@@ -338,6 +364,7 @@ interface CardProps {
|
|
|
338
364
|
text: YextEntityField<string>;
|
|
339
365
|
fontSize: HeadingProps["fontSize"];
|
|
340
366
|
color: HeadingProps["color"];
|
|
367
|
+
weight: HeadingProps["weight"];
|
|
341
368
|
transform: HeadingProps["transform"];
|
|
342
369
|
level: HeadingLevel;
|
|
343
370
|
};
|
|
@@ -345,6 +372,7 @@ interface CardProps {
|
|
|
345
372
|
text: YextEntityField<string>;
|
|
346
373
|
fontSize: HeadingProps["fontSize"];
|
|
347
374
|
color: HeadingProps["color"];
|
|
375
|
+
weight: HeadingProps["weight"];
|
|
348
376
|
transform: HeadingProps["transform"];
|
|
349
377
|
level: HeadingLevel;
|
|
350
378
|
};
|
|
@@ -352,6 +380,7 @@ interface CardProps {
|
|
|
352
380
|
text: YextEntityField<string>;
|
|
353
381
|
fontSize: BodyProps["fontSize"];
|
|
354
382
|
color: BodyProps["color"];
|
|
383
|
+
weight: BodyProps["fontWeight"];
|
|
355
384
|
transform: BodyProps["textTransform"];
|
|
356
385
|
};
|
|
357
386
|
image: {
|
|
@@ -380,7 +409,7 @@ interface CTAWrapperProps {
|
|
|
380
409
|
declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
|
|
381
410
|
|
|
382
411
|
declare const emailsVariants: (props?: ({
|
|
383
|
-
fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "
|
|
412
|
+
fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "medium" | null | undefined;
|
|
384
413
|
fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
|
|
385
414
|
color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
386
415
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
@@ -391,15 +420,22 @@ interface EmailsProps extends VariantProps<typeof emailsVariants> {
|
|
|
391
420
|
}
|
|
392
421
|
declare const EmailsComponent: ComponentConfig<EmailsProps>;
|
|
393
422
|
|
|
394
|
-
|
|
395
|
-
gap
|
|
423
|
+
declare const layoutVariants: (props?: ({
|
|
424
|
+
gap?: "0" | "1" | "2" | "3" | "4" | "default" | "none" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
|
|
425
|
+
verticalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
|
|
426
|
+
horizontalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
|
|
427
|
+
backgroundColor?: "default" | "text" | "accent" | "inherit" | "secondary" | "primary" | "background" | null | undefined;
|
|
428
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
429
|
+
declare const innerLayoutVariants: (props?: ({
|
|
430
|
+
maxContentWidth?: "default" | "none" | "lg" | "xl" | "xxl" | null | undefined;
|
|
431
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
432
|
+
|
|
433
|
+
interface FlexProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof innerLayoutVariants> {
|
|
396
434
|
justifyContent: "start" | "center" | "end";
|
|
397
435
|
direction: "row" | "column";
|
|
398
436
|
wrap: "wrap" | "nowrap";
|
|
399
|
-
verticalPadding: number;
|
|
400
|
-
horizontalPadding: number;
|
|
401
437
|
}
|
|
402
|
-
declare const FlexContainerComponent: ComponentConfig<
|
|
438
|
+
declare const FlexContainerComponent: ComponentConfig<FlexProps>;
|
|
403
439
|
|
|
404
440
|
declare const footerVariants: (props?: ({
|
|
405
441
|
backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
@@ -424,23 +460,14 @@ type GetDirectionsProps = {
|
|
|
424
460
|
};
|
|
425
461
|
declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
|
|
426
462
|
|
|
427
|
-
declare const outerBackgroundVariants: (props?: ({
|
|
428
|
-
backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
429
|
-
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
430
|
-
declare const innerBackgroundVariants: (props?: ({
|
|
431
|
-
maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
|
|
432
|
-
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
433
463
|
interface ColumnProps {
|
|
434
464
|
justifyContent: "center" | "start" | "end" | "spaceBetween";
|
|
435
465
|
span?: number;
|
|
436
466
|
}
|
|
437
|
-
interface
|
|
438
|
-
gap: number;
|
|
439
|
-
verticalPadding: number;
|
|
440
|
-
horizontalPadding: number;
|
|
467
|
+
interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof innerLayoutVariants> {
|
|
441
468
|
columns: ColumnProps[];
|
|
442
469
|
}
|
|
443
|
-
declare const GridSectionComponent: ComponentConfig<
|
|
470
|
+
declare const GridSectionComponent: ComponentConfig<GridProps>;
|
|
444
471
|
|
|
445
472
|
declare const headerVariants: (props?: ({
|
|
446
473
|
backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
@@ -531,4 +558,4 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
|
|
|
531
558
|
}
|
|
532
559
|
declare const TextListComponent: ComponentConfig<TextListProps>;
|
|
533
560
|
|
|
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
|
|
561
|
+
export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, BorderRadiusSelector, 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, getSpacingOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, validateSlug };
|
package/dist/index.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ declare const YextEntityFieldSelector: <T extends Record<string, any>, U>(props:
|
|
|
141
141
|
|
|
142
142
|
declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField<T>) => T | undefined;
|
|
143
143
|
|
|
144
|
-
declare const
|
|
144
|
+
declare const themeManagerTwMergeConfiguration: {
|
|
145
145
|
extend: {
|
|
146
146
|
classGroups: {
|
|
147
147
|
"font-family": {
|
|
@@ -156,8 +156,14 @@ declare const themeMangerTwMergeConfiguration: {
|
|
|
156
156
|
"text-color": {
|
|
157
157
|
text: ((value: string) => boolean)[];
|
|
158
158
|
}[];
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
gap: {
|
|
160
|
+
gap: ((value: string) => boolean)[];
|
|
161
|
+
}[];
|
|
162
|
+
py: {
|
|
163
|
+
py: ((value: string) => boolean)[];
|
|
164
|
+
}[];
|
|
165
|
+
px: {
|
|
166
|
+
px: ((value: string) => boolean)[];
|
|
161
167
|
}[];
|
|
162
168
|
"max-w": {
|
|
163
169
|
"max-w": ((value: string) => boolean)[];
|
|
@@ -171,7 +177,7 @@ declare const themeMangerTwMergeConfiguration: {
|
|
|
171
177
|
};
|
|
172
178
|
};
|
|
173
179
|
};
|
|
174
|
-
declare function
|
|
180
|
+
declare function themeManagerCn(...inputs: ClassValue[]): string;
|
|
175
181
|
|
|
176
182
|
type FontRegistry = Record<string, FontSpecification>;
|
|
177
183
|
type FontSpecification = {
|
|
@@ -218,13 +224,29 @@ declare const validateSlug: (content: string) => boolean;
|
|
|
218
224
|
*/
|
|
219
225
|
declare const normalizeSlug: (content: string) => string;
|
|
220
226
|
|
|
227
|
+
declare const getFontSizeOptions: (includeLargeSizes?: boolean) => {
|
|
228
|
+
label: string;
|
|
229
|
+
value: string;
|
|
230
|
+
}[];
|
|
231
|
+
declare const getBorderRadiusOptions: () => {
|
|
232
|
+
label: string;
|
|
233
|
+
value: string;
|
|
234
|
+
}[];
|
|
235
|
+
declare const getSpacingOptions: () => {
|
|
236
|
+
label: string;
|
|
237
|
+
value: string;
|
|
238
|
+
}[];
|
|
239
|
+
|
|
240
|
+
declare const applyAnalytics: (document: Record<string, any>) => string | undefined;
|
|
241
|
+
|
|
221
242
|
type EditorProps = {
|
|
222
243
|
document: any;
|
|
223
244
|
componentRegistry: Map<string, Config<any>>;
|
|
224
245
|
themeConfig?: ThemeConfig;
|
|
225
246
|
localDev?: boolean;
|
|
247
|
+
forceThemeMode?: boolean;
|
|
226
248
|
};
|
|
227
|
-
declare const Editor: ({ document, componentRegistry, themeConfig, localDev, }: EditorProps) => react_jsx_runtime.JSX.Element;
|
|
249
|
+
declare const Editor: ({ document, componentRegistry, themeConfig, localDev, forceThemeMode, }: EditorProps) => react_jsx_runtime.JSX.Element;
|
|
228
250
|
|
|
229
251
|
type EntityFieldProps = {
|
|
230
252
|
displayName?: string;
|
|
@@ -241,7 +263,11 @@ type NumberFieldWithDefaultOptionProps = {
|
|
|
241
263
|
};
|
|
242
264
|
declare const NumberFieldWithDefaultOption: ({ label, defaultCustomValue, }: NumberFieldWithDefaultOptionProps) => CustomField<NumberOrDefault>;
|
|
243
265
|
|
|
244
|
-
declare const FontSizeSelector: (label?: string) => Field;
|
|
266
|
+
declare const FontSizeSelector: (label?: string, includeLargeSizes?: boolean) => Field;
|
|
267
|
+
|
|
268
|
+
declare const BorderRadiusSelector: (label?: string) => Field;
|
|
269
|
+
|
|
270
|
+
declare const SpacingSelector: (spacingType: "padding" | "gap", label?: string) => Field;
|
|
245
271
|
|
|
246
272
|
declare const bodyVariants: (props?: ({
|
|
247
273
|
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
@@ -255,9 +281,9 @@ declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttribu
|
|
|
255
281
|
|
|
256
282
|
declare const buttonVariants: (props?: ({
|
|
257
283
|
variant?: "link" | "primary" | null | undefined;
|
|
258
|
-
size?: "small" | "
|
|
284
|
+
size?: "small" | "icon" | "large" | null | undefined;
|
|
259
285
|
fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
260
|
-
borderRadius?: "default" | "none" | "
|
|
286
|
+
borderRadius?: "default" | "none" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "md" | "full" | null | undefined;
|
|
261
287
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
262
288
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
263
289
|
asChild?: boolean;
|
|
@@ -323,9 +349,9 @@ interface BodyTextProps extends BodyProps {
|
|
|
323
349
|
declare const BodyTextComponent: ComponentConfig<BodyTextProps>;
|
|
324
350
|
|
|
325
351
|
declare const imageWrapperVariants: (props?: ({
|
|
326
|
-
size?: "small" | "large" | "
|
|
352
|
+
size?: "small" | "large" | "full" | "medium" | null | undefined;
|
|
327
353
|
aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
|
|
328
|
-
rounded?: "small" | "none" | "large" | "
|
|
354
|
+
rounded?: "small" | "none" | "large" | "full" | "medium" | null | undefined;
|
|
329
355
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
330
356
|
interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
|
|
331
357
|
image: YextEntityField<ImageType>;
|
|
@@ -338,6 +364,7 @@ interface CardProps {
|
|
|
338
364
|
text: YextEntityField<string>;
|
|
339
365
|
fontSize: HeadingProps["fontSize"];
|
|
340
366
|
color: HeadingProps["color"];
|
|
367
|
+
weight: HeadingProps["weight"];
|
|
341
368
|
transform: HeadingProps["transform"];
|
|
342
369
|
level: HeadingLevel;
|
|
343
370
|
};
|
|
@@ -345,6 +372,7 @@ interface CardProps {
|
|
|
345
372
|
text: YextEntityField<string>;
|
|
346
373
|
fontSize: HeadingProps["fontSize"];
|
|
347
374
|
color: HeadingProps["color"];
|
|
375
|
+
weight: HeadingProps["weight"];
|
|
348
376
|
transform: HeadingProps["transform"];
|
|
349
377
|
level: HeadingLevel;
|
|
350
378
|
};
|
|
@@ -352,6 +380,7 @@ interface CardProps {
|
|
|
352
380
|
text: YextEntityField<string>;
|
|
353
381
|
fontSize: BodyProps["fontSize"];
|
|
354
382
|
color: BodyProps["color"];
|
|
383
|
+
weight: BodyProps["fontWeight"];
|
|
355
384
|
transform: BodyProps["textTransform"];
|
|
356
385
|
};
|
|
357
386
|
image: {
|
|
@@ -380,7 +409,7 @@ interface CTAWrapperProps {
|
|
|
380
409
|
declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
|
|
381
410
|
|
|
382
411
|
declare const emailsVariants: (props?: ({
|
|
383
|
-
fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "
|
|
412
|
+
fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "medium" | null | undefined;
|
|
384
413
|
fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
|
|
385
414
|
color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
386
415
|
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
@@ -391,15 +420,22 @@ interface EmailsProps extends VariantProps<typeof emailsVariants> {
|
|
|
391
420
|
}
|
|
392
421
|
declare const EmailsComponent: ComponentConfig<EmailsProps>;
|
|
393
422
|
|
|
394
|
-
|
|
395
|
-
gap
|
|
423
|
+
declare const layoutVariants: (props?: ({
|
|
424
|
+
gap?: "0" | "1" | "2" | "3" | "4" | "default" | "none" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
|
|
425
|
+
verticalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
|
|
426
|
+
horizontalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
|
|
427
|
+
backgroundColor?: "default" | "text" | "accent" | "inherit" | "secondary" | "primary" | "background" | null | undefined;
|
|
428
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
429
|
+
declare const innerLayoutVariants: (props?: ({
|
|
430
|
+
maxContentWidth?: "default" | "none" | "lg" | "xl" | "xxl" | null | undefined;
|
|
431
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
432
|
+
|
|
433
|
+
interface FlexProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof innerLayoutVariants> {
|
|
396
434
|
justifyContent: "start" | "center" | "end";
|
|
397
435
|
direction: "row" | "column";
|
|
398
436
|
wrap: "wrap" | "nowrap";
|
|
399
|
-
verticalPadding: number;
|
|
400
|
-
horizontalPadding: number;
|
|
401
437
|
}
|
|
402
|
-
declare const FlexContainerComponent: ComponentConfig<
|
|
438
|
+
declare const FlexContainerComponent: ComponentConfig<FlexProps>;
|
|
403
439
|
|
|
404
440
|
declare const footerVariants: (props?: ({
|
|
405
441
|
backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
@@ -424,23 +460,14 @@ type GetDirectionsProps = {
|
|
|
424
460
|
};
|
|
425
461
|
declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
|
|
426
462
|
|
|
427
|
-
declare const outerBackgroundVariants: (props?: ({
|
|
428
|
-
backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
429
|
-
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
430
|
-
declare const innerBackgroundVariants: (props?: ({
|
|
431
|
-
maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
|
|
432
|
-
} & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
|
|
433
463
|
interface ColumnProps {
|
|
434
464
|
justifyContent: "center" | "start" | "end" | "spaceBetween";
|
|
435
465
|
span?: number;
|
|
436
466
|
}
|
|
437
|
-
interface
|
|
438
|
-
gap: number;
|
|
439
|
-
verticalPadding: number;
|
|
440
|
-
horizontalPadding: number;
|
|
467
|
+
interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof innerLayoutVariants> {
|
|
441
468
|
columns: ColumnProps[];
|
|
442
469
|
}
|
|
443
|
-
declare const GridSectionComponent: ComponentConfig<
|
|
470
|
+
declare const GridSectionComponent: ComponentConfig<GridProps>;
|
|
444
471
|
|
|
445
472
|
declare const headerVariants: (props?: ({
|
|
446
473
|
backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
|
|
@@ -531,4 +558,4 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
|
|
|
531
558
|
}
|
|
532
559
|
declare const TextListComponent: ComponentConfig<TextListProps>;
|
|
533
560
|
|
|
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
|
|
561
|
+
export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, BorderRadiusSelector, 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, getSpacingOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, validateSlug };
|