@yext/visual-editor 0.0.18 → 0.0.20

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 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 { AddressType, GetDirectionsConfig, Coordinate, HoursType, DayOfWeekNames, ImageType } from '@yext/pages-components';
9
+ import { AddressType, GetDirectionsConfig, ImageType, CTA as CTA$1, Coordinate, 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;
@@ -90,11 +90,15 @@ declare const themeResolver: (developerTheming: TailwindConfig, marketerTheming:
90
90
 
91
91
  type Document = {
92
92
  [key: string]: any;
93
+ __?: {
94
+ layout?: string;
95
+ theme?: string;
96
+ codeTemplate?: string;
97
+ name?: string;
98
+ };
93
99
  };
94
100
  declare const applyTheme: (document: Document, themeConfig: ThemeConfig, base?: string) => string;
95
101
 
96
- declare function resolveVisualEditorData(data: any, pageSet: string | undefined): any;
97
-
98
102
  type Only<T, U> = {
99
103
  [P in keyof T]: T[P];
100
104
  } & {
@@ -137,7 +141,37 @@ declare const YextEntityFieldSelector: <T extends Record<string, any>, U>(props:
137
141
 
138
142
  declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField<T>) => T | undefined;
139
143
 
140
- declare function yextCn(...inputs: ClassValue[]): string;
144
+ declare const themeMangerTwMergeConfiguration: {
145
+ extend: {
146
+ classGroups: {
147
+ "font-family": {
148
+ font: ((value: string) => boolean)[];
149
+ }[];
150
+ "font-weight": {
151
+ font: ((value: string) => boolean)[];
152
+ }[];
153
+ "font-size": {
154
+ text: ((value: string) => boolean)[];
155
+ }[];
156
+ "text-color": {
157
+ text: ((value: string) => boolean)[];
158
+ }[];
159
+ "gap-y": {
160
+ "gap-y": ((value: string) => boolean)[];
161
+ }[];
162
+ "max-w": {
163
+ "max-w": ((value: string) => boolean)[];
164
+ }[];
165
+ "bg-color": {
166
+ "bg-color": ((value: string) => boolean)[];
167
+ }[];
168
+ rounded: {
169
+ rounded: ((value: string) => boolean)[];
170
+ }[];
171
+ };
172
+ };
173
+ };
174
+ declare function themeMangerCn(...inputs: ClassValue[]): string;
141
175
 
142
176
  type FontRegistry = Record<string, FontSpecification>;
143
177
  type FontSpecification = {
@@ -195,7 +229,7 @@ declare const FontSizeSelector: (label?: string) => Field;
195
229
  declare const bodyVariants: (props?: ({
196
230
  fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
197
231
  fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
198
- color?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | null | undefined;
232
+ color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
199
233
  textTransform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
200
234
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
201
235
  interface BodyProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof bodyVariants> {
@@ -227,11 +261,11 @@ declare const CTA: {
227
261
  };
228
262
 
229
263
  declare const headingVariants: (props?: ({
264
+ level?: 2 | 1 | 3 | 4 | 5 | 6 | null | undefined;
230
265
  fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
231
266
  weight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
232
- color?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | null | undefined;
267
+ color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
233
268
  transform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
234
- level?: 2 | 1 | 3 | 4 | 5 | 6 | null | undefined;
235
269
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
236
270
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
237
271
  interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
@@ -260,9 +294,55 @@ interface BodyTextProps extends BodyProps {
260
294
  }
261
295
  declare const BodyTextComponent: ComponentConfig<BodyTextProps>;
262
296
 
297
+ declare const imageWrapperVariants: (props?: ({
298
+ size?: "small" | "large" | "medium" | "full" | null | undefined;
299
+ aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
300
+ rounded?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
301
+ } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
302
+ interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
303
+ image: YextEntityField<ImageType>;
304
+ }
305
+ declare const ImageWrapperComponent: ComponentConfig<ImageWrapperProps>;
306
+
307
+ interface CardProps {
308
+ orientation: "left" | "right";
309
+ heading: {
310
+ text: YextEntityField<string>;
311
+ fontSize: HeadingProps["fontSize"];
312
+ color: HeadingProps["color"];
313
+ transform: HeadingProps["transform"];
314
+ };
315
+ subheading: {
316
+ text: YextEntityField<string>;
317
+ fontSize: HeadingProps["fontSize"];
318
+ color: HeadingProps["color"];
319
+ transform: HeadingProps["transform"];
320
+ };
321
+ body: {
322
+ text: YextEntityField<string>;
323
+ fontSize: BodyProps["fontSize"];
324
+ color: BodyProps["color"];
325
+ transform: BodyProps["textTransform"];
326
+ };
327
+ image: {
328
+ image: YextEntityField<ImageType>;
329
+ size: ImageWrapperProps["size"];
330
+ aspectRatio: ImageWrapperProps["aspectRatio"];
331
+ rounded: ImageWrapperProps["rounded"];
332
+ };
333
+ cta: {
334
+ entityField: YextEntityField<CTAProps>;
335
+ variant: CTAProps["variant"];
336
+ fontSize: HeadingProps["fontSize"];
337
+ };
338
+ }
339
+ declare const CardComponent: ComponentConfig<CardProps>;
340
+
263
341
  interface CTAWrapperProps {
264
342
  entityField: YextEntityField<CTAProps>;
265
343
  variant: CTAProps["variant"];
344
+ size: CTAProps["size"];
345
+ borderRadius: CTAProps["borderRadius"];
266
346
  fontSize: CTAProps["fontSize"];
267
347
  className?: CTAProps["className"];
268
348
  }
@@ -270,8 +350,8 @@ declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
270
350
 
271
351
  declare const emailsVariants: (props?: ({
272
352
  fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "medium" | null | undefined;
273
- fontWeight?: "bold" | "default" | "normal" | "black" | "medium" | "light" | "thin" | "extralight" | "semibold" | "extrabold" | null | undefined;
274
- color?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | "foreground" | null | undefined;
353
+ fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
354
+ color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
275
355
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
276
356
  interface EmailsProps extends VariantProps<typeof emailsVariants> {
277
357
  list: YextEntityField<string[]>;
@@ -282,8 +362,8 @@ declare const EmailsComponent: ComponentConfig<EmailsProps>;
282
362
 
283
363
  declare const flexContainerVariants: (props?: ({
284
364
  direction?: "row" | "column" | null | undefined;
285
- alignment?: "center" | "end" | "start" | "stretch" | null | undefined;
286
- justification?: "center" | "end" | "start" | "spaceBetween" | "spaceAround" | null | undefined;
365
+ alignment?: "end" | "start" | "center" | "stretch" | null | undefined;
366
+ justification?: "end" | "start" | "center" | "spaceBetween" | "spaceAround" | null | undefined;
287
367
  spacing?: "small" | "large" | "medium" | null | undefined;
288
368
  wrap?: "wrap" | "nowrap" | null | undefined;
289
369
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
@@ -292,27 +372,39 @@ interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement>, Varia
292
372
  }
293
373
  declare const FlexContainerComponent: ComponentConfig<FlexContainerProps>;
294
374
 
375
+ declare const footerVariants: (props?: ({
376
+ backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
377
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
378
+ interface FooterProps extends VariantProps<typeof footerVariants> {
379
+ copyright: BodyProps & {
380
+ text: YextEntityField<string>;
381
+ };
382
+ links: {
383
+ cta: YextEntityField<CTA$1>;
384
+ id?: string;
385
+ }[];
386
+ }
387
+ declare const Footer: ComponentConfig<FooterProps>;
388
+
295
389
  type GetDirectionsProps = {
296
390
  coordinate: YextEntityField<Coordinate>;
297
391
  getDirectionsProvider: GetDirectionsConfig["provider"];
298
392
  variant: ButtonProps["variant"];
299
393
  size: ButtonProps["size"];
300
394
  borderRadius: ButtonProps["borderRadius"];
301
- alignment: "items-start" | "items-center";
302
- padding: VariantProps<typeof sectionVariants>["padding"];
303
395
  fontSize: ButtonProps["fontSize"];
304
396
  };
305
397
  declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
306
398
 
307
399
  declare const backgroundVariants: (props?: ({
308
- backgroundColor?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | null | undefined;
400
+ backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
309
401
  maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
310
402
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
311
403
  declare const gridSectionVariants: (props?: ({
312
404
  horizontalSpacing?: "small" | "large" | "medium" | null | undefined;
313
405
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
314
406
  declare const columnVariants: (props?: ({
315
- verticalAlignment?: "center" | "end" | "start" | "spaceBetween" | null | undefined;
407
+ verticalAlignment?: "end" | "start" | "center" | "spaceBetween" | null | undefined;
316
408
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
317
409
  interface ColumnProps extends VariantProps<typeof columnVariants> {
318
410
  span?: number;
@@ -325,6 +417,20 @@ interface GridSectionProps extends React.HTMLAttributes<HTMLDivElement>, Variant
325
417
  }
326
418
  declare const GridSectionComponent: ComponentConfig<GridSectionProps>;
327
419
 
420
+ declare const headerVariants: (props?: ({
421
+ backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
422
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
423
+ interface HeaderProps extends VariantProps<typeof headerVariants> {
424
+ logo: {
425
+ image: YextEntityField<ImageType>;
426
+ };
427
+ links: {
428
+ cta: YextEntityField<CTA$1>;
429
+ id?: string;
430
+ }[];
431
+ }
432
+ declare const Header: ComponentConfig<HeaderProps>;
433
+
328
434
  interface HeadingTextProps extends HeadingProps {
329
435
  text: YextEntityField<string>;
330
436
  }
@@ -350,19 +456,9 @@ interface HoursStatusProps {
350
456
  }
351
457
  declare const HoursStatusComponent: ComponentConfig<HoursStatusProps>;
352
458
 
353
- declare const imageWrapperVariants: (props?: ({
354
- size?: "small" | "large" | "medium" | "full" | null | undefined;
355
- aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
356
- rounded?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
357
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
358
- interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
359
- image: YextEntityField<ImageType>;
360
- }
361
- declare const ImageWrapperComponent: ComponentConfig<ImageWrapperProps>;
362
-
363
459
  declare const phoneVariants: (props?: ({
364
460
  fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
365
- color?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | "foreground" | null | undefined;
461
+ color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
366
462
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
367
463
  interface PhoneProps extends VariantProps<typeof phoneVariants> {
368
464
  phone: YextEntityField<string>;
@@ -401,7 +497,7 @@ declare const PromoComponent: ComponentConfig<PromoProps>;
401
497
 
402
498
  declare const textListVariants: (props?: ({
403
499
  fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
404
- color?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | null | undefined;
500
+ color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
405
501
  textTransform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
406
502
  padding?: "small" | "default" | "none" | "large" | null | undefined;
407
503
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
@@ -411,4 +507,4 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
411
507
  }
412
508
  declare const TextListComponent: ComponentConfig<TextListProps>;
413
509
 
414
- export { AddressComponent as Address, type AddressProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, 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, resolveVisualEditorData, resolveYextEntityField, sectionVariants, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, yextCn };
510
+ export { AddressComponent as Address, type AddressProps, 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 };
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 { AddressType, GetDirectionsConfig, Coordinate, HoursType, DayOfWeekNames, ImageType } from '@yext/pages-components';
9
+ import { AddressType, GetDirectionsConfig, ImageType, CTA as CTA$1, Coordinate, 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;
@@ -90,11 +90,15 @@ declare const themeResolver: (developerTheming: TailwindConfig, marketerTheming:
90
90
 
91
91
  type Document = {
92
92
  [key: string]: any;
93
+ __?: {
94
+ layout?: string;
95
+ theme?: string;
96
+ codeTemplate?: string;
97
+ name?: string;
98
+ };
93
99
  };
94
100
  declare const applyTheme: (document: Document, themeConfig: ThemeConfig, base?: string) => string;
95
101
 
96
- declare function resolveVisualEditorData(data: any, pageSet: string | undefined): any;
97
-
98
102
  type Only<T, U> = {
99
103
  [P in keyof T]: T[P];
100
104
  } & {
@@ -137,7 +141,37 @@ declare const YextEntityFieldSelector: <T extends Record<string, any>, U>(props:
137
141
 
138
142
  declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField<T>) => T | undefined;
139
143
 
140
- declare function yextCn(...inputs: ClassValue[]): string;
144
+ declare const themeMangerTwMergeConfiguration: {
145
+ extend: {
146
+ classGroups: {
147
+ "font-family": {
148
+ font: ((value: string) => boolean)[];
149
+ }[];
150
+ "font-weight": {
151
+ font: ((value: string) => boolean)[];
152
+ }[];
153
+ "font-size": {
154
+ text: ((value: string) => boolean)[];
155
+ }[];
156
+ "text-color": {
157
+ text: ((value: string) => boolean)[];
158
+ }[];
159
+ "gap-y": {
160
+ "gap-y": ((value: string) => boolean)[];
161
+ }[];
162
+ "max-w": {
163
+ "max-w": ((value: string) => boolean)[];
164
+ }[];
165
+ "bg-color": {
166
+ "bg-color": ((value: string) => boolean)[];
167
+ }[];
168
+ rounded: {
169
+ rounded: ((value: string) => boolean)[];
170
+ }[];
171
+ };
172
+ };
173
+ };
174
+ declare function themeMangerCn(...inputs: ClassValue[]): string;
141
175
 
142
176
  type FontRegistry = Record<string, FontSpecification>;
143
177
  type FontSpecification = {
@@ -195,7 +229,7 @@ declare const FontSizeSelector: (label?: string) => Field;
195
229
  declare const bodyVariants: (props?: ({
196
230
  fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
197
231
  fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
198
- color?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | null | undefined;
232
+ color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
199
233
  textTransform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
200
234
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
201
235
  interface BodyProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof bodyVariants> {
@@ -227,11 +261,11 @@ declare const CTA: {
227
261
  };
228
262
 
229
263
  declare const headingVariants: (props?: ({
264
+ level?: 2 | 1 | 3 | 4 | 5 | 6 | null | undefined;
230
265
  fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
231
266
  weight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
232
- color?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | null | undefined;
267
+ color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
233
268
  transform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
234
- level?: 2 | 1 | 3 | 4 | 5 | 6 | null | undefined;
235
269
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
236
270
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
237
271
  interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
@@ -260,9 +294,55 @@ interface BodyTextProps extends BodyProps {
260
294
  }
261
295
  declare const BodyTextComponent: ComponentConfig<BodyTextProps>;
262
296
 
297
+ declare const imageWrapperVariants: (props?: ({
298
+ size?: "small" | "large" | "medium" | "full" | null | undefined;
299
+ aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
300
+ rounded?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
301
+ } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
302
+ interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
303
+ image: YextEntityField<ImageType>;
304
+ }
305
+ declare const ImageWrapperComponent: ComponentConfig<ImageWrapperProps>;
306
+
307
+ interface CardProps {
308
+ orientation: "left" | "right";
309
+ heading: {
310
+ text: YextEntityField<string>;
311
+ fontSize: HeadingProps["fontSize"];
312
+ color: HeadingProps["color"];
313
+ transform: HeadingProps["transform"];
314
+ };
315
+ subheading: {
316
+ text: YextEntityField<string>;
317
+ fontSize: HeadingProps["fontSize"];
318
+ color: HeadingProps["color"];
319
+ transform: HeadingProps["transform"];
320
+ };
321
+ body: {
322
+ text: YextEntityField<string>;
323
+ fontSize: BodyProps["fontSize"];
324
+ color: BodyProps["color"];
325
+ transform: BodyProps["textTransform"];
326
+ };
327
+ image: {
328
+ image: YextEntityField<ImageType>;
329
+ size: ImageWrapperProps["size"];
330
+ aspectRatio: ImageWrapperProps["aspectRatio"];
331
+ rounded: ImageWrapperProps["rounded"];
332
+ };
333
+ cta: {
334
+ entityField: YextEntityField<CTAProps>;
335
+ variant: CTAProps["variant"];
336
+ fontSize: HeadingProps["fontSize"];
337
+ };
338
+ }
339
+ declare const CardComponent: ComponentConfig<CardProps>;
340
+
263
341
  interface CTAWrapperProps {
264
342
  entityField: YextEntityField<CTAProps>;
265
343
  variant: CTAProps["variant"];
344
+ size: CTAProps["size"];
345
+ borderRadius: CTAProps["borderRadius"];
266
346
  fontSize: CTAProps["fontSize"];
267
347
  className?: CTAProps["className"];
268
348
  }
@@ -270,8 +350,8 @@ declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
270
350
 
271
351
  declare const emailsVariants: (props?: ({
272
352
  fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "medium" | null | undefined;
273
- fontWeight?: "bold" | "default" | "normal" | "black" | "medium" | "light" | "thin" | "extralight" | "semibold" | "extrabold" | null | undefined;
274
- color?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | "foreground" | null | undefined;
353
+ fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
354
+ color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
275
355
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
276
356
  interface EmailsProps extends VariantProps<typeof emailsVariants> {
277
357
  list: YextEntityField<string[]>;
@@ -282,8 +362,8 @@ declare const EmailsComponent: ComponentConfig<EmailsProps>;
282
362
 
283
363
  declare const flexContainerVariants: (props?: ({
284
364
  direction?: "row" | "column" | null | undefined;
285
- alignment?: "center" | "end" | "start" | "stretch" | null | undefined;
286
- justification?: "center" | "end" | "start" | "spaceBetween" | "spaceAround" | null | undefined;
365
+ alignment?: "end" | "start" | "center" | "stretch" | null | undefined;
366
+ justification?: "end" | "start" | "center" | "spaceBetween" | "spaceAround" | null | undefined;
287
367
  spacing?: "small" | "large" | "medium" | null | undefined;
288
368
  wrap?: "wrap" | "nowrap" | null | undefined;
289
369
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
@@ -292,27 +372,39 @@ interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement>, Varia
292
372
  }
293
373
  declare const FlexContainerComponent: ComponentConfig<FlexContainerProps>;
294
374
 
375
+ declare const footerVariants: (props?: ({
376
+ backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
377
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
378
+ interface FooterProps extends VariantProps<typeof footerVariants> {
379
+ copyright: BodyProps & {
380
+ text: YextEntityField<string>;
381
+ };
382
+ links: {
383
+ cta: YextEntityField<CTA$1>;
384
+ id?: string;
385
+ }[];
386
+ }
387
+ declare const Footer: ComponentConfig<FooterProps>;
388
+
295
389
  type GetDirectionsProps = {
296
390
  coordinate: YextEntityField<Coordinate>;
297
391
  getDirectionsProvider: GetDirectionsConfig["provider"];
298
392
  variant: ButtonProps["variant"];
299
393
  size: ButtonProps["size"];
300
394
  borderRadius: ButtonProps["borderRadius"];
301
- alignment: "items-start" | "items-center";
302
- padding: VariantProps<typeof sectionVariants>["padding"];
303
395
  fontSize: ButtonProps["fontSize"];
304
396
  };
305
397
  declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
306
398
 
307
399
  declare const backgroundVariants: (props?: ({
308
- backgroundColor?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | null | undefined;
400
+ backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
309
401
  maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
310
402
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
311
403
  declare const gridSectionVariants: (props?: ({
312
404
  horizontalSpacing?: "small" | "large" | "medium" | null | undefined;
313
405
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
314
406
  declare const columnVariants: (props?: ({
315
- verticalAlignment?: "center" | "end" | "start" | "spaceBetween" | null | undefined;
407
+ verticalAlignment?: "end" | "start" | "center" | "spaceBetween" | null | undefined;
316
408
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
317
409
  interface ColumnProps extends VariantProps<typeof columnVariants> {
318
410
  span?: number;
@@ -325,6 +417,20 @@ interface GridSectionProps extends React.HTMLAttributes<HTMLDivElement>, Variant
325
417
  }
326
418
  declare const GridSectionComponent: ComponentConfig<GridSectionProps>;
327
419
 
420
+ declare const headerVariants: (props?: ({
421
+ backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
422
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
423
+ interface HeaderProps extends VariantProps<typeof headerVariants> {
424
+ logo: {
425
+ image: YextEntityField<ImageType>;
426
+ };
427
+ links: {
428
+ cta: YextEntityField<CTA$1>;
429
+ id?: string;
430
+ }[];
431
+ }
432
+ declare const Header: ComponentConfig<HeaderProps>;
433
+
328
434
  interface HeadingTextProps extends HeadingProps {
329
435
  text: YextEntityField<string>;
330
436
  }
@@ -350,19 +456,9 @@ interface HoursStatusProps {
350
456
  }
351
457
  declare const HoursStatusComponent: ComponentConfig<HoursStatusProps>;
352
458
 
353
- declare const imageWrapperVariants: (props?: ({
354
- size?: "small" | "large" | "medium" | "full" | null | undefined;
355
- aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
356
- rounded?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
357
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
358
- interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
359
- image: YextEntityField<ImageType>;
360
- }
361
- declare const ImageWrapperComponent: ComponentConfig<ImageWrapperProps>;
362
-
363
459
  declare const phoneVariants: (props?: ({
364
460
  fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
365
- color?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | "foreground" | null | undefined;
461
+ color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
366
462
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
367
463
  interface PhoneProps extends VariantProps<typeof phoneVariants> {
368
464
  phone: YextEntityField<string>;
@@ -401,7 +497,7 @@ declare const PromoComponent: ComponentConfig<PromoProps>;
401
497
 
402
498
  declare const textListVariants: (props?: ({
403
499
  fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
404
- color?: "default" | "text" | "secondary" | "primary" | "accent" | "background" | null | undefined;
500
+ color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
405
501
  textTransform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
406
502
  padding?: "small" | "default" | "none" | "large" | null | undefined;
407
503
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
@@ -411,4 +507,4 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
411
507
  }
412
508
  declare const TextListComponent: ComponentConfig<TextListProps>;
413
509
 
414
- export { AddressComponent as Address, type AddressProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, 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, resolveVisualEditorData, resolveYextEntityField, sectionVariants, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, yextCn };
510
+ export { AddressComponent as Address, type AddressProps, 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 };