@yext/visual-editor 0.0.14 → 0.0.15

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
@@ -2,25 +2,34 @@ import * as class_variance_authority_dist_types from 'class-variance-authority/d
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
+ import { CustomField, Field, ComponentConfig, Config } from '@measured/puck';
5
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import { Field, ComponentConfig, Config } from '@measured/puck';
7
- import { AddressType, GetDirectionsConfig, DayOfWeekNames, ImageType } from '@yext/pages-components';
7
+ import { AddressType, GetDirectionsConfig, Coordinate, DayOfWeekNames, ImageType } from '@yext/pages-components';
8
+
9
+ type NumberOrDefault = number | "default";
10
+ type NumberFieldWithDefaultOptionProps = {
11
+ label: string;
12
+ defaultCustomValue: number;
13
+ };
14
+ declare const NumberFieldWithDefaultOption: ({ label, defaultCustomValue, }: NumberFieldWithDefaultOptionProps) => CustomField<NumberOrDefault>;
8
15
 
9
16
  declare const bodyVariants: (props?: ({
10
- fontWeight?: "default" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black" | null | undefined;
11
- color?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | null | undefined;
17
+ fontWeight?: "default" | "bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black" | null | undefined;
18
+ color?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | null | undefined;
12
19
  textTransform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
13
20
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
14
21
  interface BodyProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof bodyVariants> {
22
+ fontSize: NumberOrDefault;
15
23
  }
16
24
  declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLParagraphElement>>;
17
25
 
18
26
  declare const buttonVariants: (props?: ({
19
- variant?: "primary" | "secondary" | "link" | "outline" | null | undefined;
20
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
27
+ variant?: "link" | "primary" | "secondary" | "outline" | null | undefined;
28
+ size?: "default" | "icon" | "sm" | "lg" | null | undefined;
21
29
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
22
30
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
23
31
  asChild?: boolean;
32
+ fontSize?: NumberOrDefault;
24
33
  }
25
34
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
26
35
 
@@ -29,26 +38,28 @@ interface CTAProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement
29
38
  url?: string;
30
39
  variant?: ButtonProps["variant"];
31
40
  size?: ButtonProps["size"];
41
+ fontSize?: NumberOrDefault;
32
42
  }
33
43
  declare const CTA: {
34
- ({ label, url, variant, size, className }: CTAProps): react_jsx_runtime.JSX.Element;
44
+ ({ label, url, variant, size, className, fontSize, }: CTAProps): react_jsx_runtime.JSX.Element;
35
45
  displayName: string;
36
46
  };
37
47
 
38
48
  declare const headingVariants: (props?: ({
39
- weight?: "default" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black" | null | undefined;
40
- color?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | null | undefined;
49
+ weight?: "default" | "bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black" | null | undefined;
50
+ color?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | null | undefined;
41
51
  transform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
42
52
  level?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
43
53
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
44
54
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
45
55
  interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
46
56
  level?: HeadingLevel;
57
+ fontSize: NumberOrDefault;
47
58
  }
48
59
  declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
49
60
 
50
61
  declare const sectionVariants: (props?: ({
51
- padding?: "default" | "none" | "small" | "large" | null | undefined;
62
+ padding?: "default" | "small" | "none" | "large" | null | undefined;
52
63
  maxWidth?: "default" | "full" | "xl" | null | undefined;
53
64
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
54
65
  interface SectionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof sectionVariants> {
@@ -119,20 +130,34 @@ type AddressProps = {
119
130
  };
120
131
  declare const AddressComponent: ComponentConfig<AddressProps>;
121
132
 
133
+ type GetDirectionsProps = {
134
+ coordinate: YextEntityField<Coordinate>;
135
+ getDirectionsProvider: GetDirectionsConfig["provider"];
136
+ variant: ButtonProps["variant"];
137
+ size: ButtonProps["size"];
138
+ alignment: "items-start" | "items-center";
139
+ padding: VariantProps<typeof sectionVariants>["padding"];
140
+ fontSize?: NumberOrDefault;
141
+ };
142
+ declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
143
+
122
144
  interface BodyTextProps extends BodyProps {
123
145
  text: YextEntityField<string>;
124
146
  }
125
147
  declare const BodyTextComponent: ComponentConfig<BodyTextProps>;
126
148
 
127
- interface CTAWrapperProps extends CTAProps {
149
+ interface CTAWrapperProps {
128
150
  entityField: YextEntityField<CTAProps>;
151
+ variant: CTAProps["variant"];
152
+ fontSize: NumberOrDefault;
153
+ className?: CTAProps["className"];
129
154
  }
130
155
  declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
131
156
 
132
157
  declare const emailsVariants: (props?: ({
133
158
  fontSize?: "default" | "medium" | "sm" | "lg" | "xl" | "xs" | "2xl" | "3xl" | "4xl" | "5xl" | null | undefined;
134
- fontWeight?: "default" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black" | null | undefined;
135
- color?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | "foreground" | null | undefined;
159
+ fontWeight?: "default" | "bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black" | null | undefined;
160
+ color?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | "foreground" | null | undefined;
136
161
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
137
162
  interface EmailsProps extends VariantProps<typeof emailsVariants> {
138
163
  list: YextEntityField<string[]>;
@@ -142,11 +167,11 @@ interface EmailsProps extends VariantProps<typeof emailsVariants> {
142
167
  declare const EmailsComponent: ComponentConfig<EmailsProps>;
143
168
 
144
169
  declare const flexContainerVariants: (props?: ({
145
- direction?: "row" | "column" | null | undefined;
146
- alignment?: "center" | "end" | "start" | "stretch" | null | undefined;
170
+ direction?: "column" | "row" | null | undefined;
171
+ alignment?: "stretch" | "center" | "end" | "start" | null | undefined;
147
172
  justification?: "center" | "end" | "start" | "spaceBetween" | "spaceAround" | null | undefined;
148
- spacing?: "medium" | "small" | "large" | null | undefined;
149
- wrap?: "wrap" | "nowrap" | null | undefined;
173
+ spacing?: "small" | "medium" | "large" | null | undefined;
174
+ wrap?: "nowrap" | "wrap" | null | undefined;
150
175
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
151
176
  interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexContainerVariants> {
152
177
  renderDropZone?: any;
@@ -154,16 +179,16 @@ interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement>, Varia
154
179
  declare const FlexContainerComponent: ComponentConfig<FlexContainerProps>;
155
180
 
156
181
  declare const backgroundVariants: (props?: ({
157
- backgroundColor?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | null | undefined;
182
+ backgroundColor?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | null | undefined;
158
183
  maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
159
184
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
160
185
  declare const gridSectionVariants: (props?: ({
161
- horizontalSpacing?: "medium" | "small" | "large" | null | undefined;
186
+ horizontalSpacing?: "small" | "medium" | "large" | null | undefined;
162
187
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
163
188
  declare const columnVariants: (props?: ({
164
189
  verticalAlignment?: "center" | "end" | "start" | "spaceBetween" | null | undefined;
165
- verticalSpacing?: "default" | "medium" | "small" | "large" | null | undefined;
166
- padding?: "medium" | "none" | "small" | "large" | null | undefined;
190
+ verticalSpacing?: "default" | "small" | "medium" | "large" | null | undefined;
191
+ padding?: "small" | "medium" | "none" | "large" | null | undefined;
167
192
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
168
193
  interface ColumnProps extends VariantProps<typeof columnVariants> {
169
194
  span?: number;
@@ -200,9 +225,9 @@ interface HoursStatusProps {
200
225
  declare const HoursStatusComponent: ComponentConfig<HoursStatusProps>;
201
226
 
202
227
  declare const imageWrapperVariants: (props?: ({
203
- size?: "medium" | "small" | "large" | "full" | null | undefined;
204
- aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
205
- rounded?: "medium" | "none" | "small" | "large" | "full" | null | undefined;
228
+ size?: "small" | "medium" | "large" | "full" | null | undefined;
229
+ aspectRatio?: "auto" | "square" | "video" | "portrait" | null | undefined;
230
+ rounded?: "small" | "medium" | "none" | "large" | "full" | null | undefined;
206
231
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
207
232
  interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
208
233
  image: YextEntityField<ImageType>;
@@ -210,8 +235,8 @@ interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
210
235
  declare const ImageWrapperComponent: ComponentConfig<ImageWrapperProps>;
211
236
 
212
237
  declare const phoneVariants: (props?: ({
213
- fontWeight?: "default" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black" | null | undefined;
214
- color?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | "foreground" | null | undefined;
238
+ fontWeight?: "default" | "bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black" | null | undefined;
239
+ color?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | "foreground" | null | undefined;
215
240
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
216
241
  interface PhoneProps extends VariantProps<typeof phoneVariants> {
217
242
  phone: YextEntityField<string>;
@@ -220,10 +245,10 @@ interface PhoneProps extends VariantProps<typeof phoneVariants> {
220
245
  declare const PhoneComponent: ComponentConfig<PhoneProps>;
221
246
 
222
247
  declare const textListVariants: (props?: ({
223
- fontWeight?: "default" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black" | null | undefined;
224
- color?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | null | undefined;
248
+ fontWeight?: "default" | "bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black" | null | undefined;
249
+ color?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | null | undefined;
225
250
  textTransform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
226
- padding?: "default" | "none" | "small" | "large" | null | undefined;
251
+ padding?: "default" | "small" | "none" | "large" | null | undefined;
227
252
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
228
253
  interface TextListProps extends VariantProps<typeof textListVariants> {
229
254
  list: YextEntityField<string[]>;
@@ -321,8 +346,8 @@ type Document = {
321
346
  };
322
347
  declare const applyTheme: (document: Document, themeConfig: ThemeConfig, base?: string) => string;
323
348
 
324
- declare function resolveVisualEditorData(data: any, pageSet: string | undefined): string;
349
+ declare function resolveVisualEditorData(data: any, pageSet: string | undefined): any;
325
350
 
326
351
  declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField<T>) => T | undefined;
327
352
 
328
- export { AddressComponent, type AddressProps, Body, type BodyProps, BodyTextComponent, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent, type CTAWrapperProps, DocumentContext, DocumentProvider, Editor, EmailsComponent, type EmailsProps, EntityField, EntityFieldsProvider, FlexContainerComponent, type FlexContainerProps, GridSectionComponent, type GridSectionProps, Heading, type HeadingProps, HeadingTextComponent, type HeadingTextProps, HoursCardComponent, type HoursCardProps, HoursStatusComponent, type HoursStatusProps, ImageWrapperComponent, type ImageWrapperProps, PhoneComponent, type PhoneProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, TextListComponent, type TextListProps, type ThemeConfig, type YextEntityField, YextEntityFieldSelector, applyTheme, bodyVariants, buttonVariants, headingVariants, resolveVisualEditorData, resolveYextEntityField, sectionVariants, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields };
353
+ export { AddressComponent, type AddressProps, Body, type BodyProps, BodyTextComponent, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent, type CTAWrapperProps, DocumentContext, DocumentProvider, Editor, EmailsComponent, type EmailsProps, EntityField, EntityFieldsProvider, FlexContainerComponent, type FlexContainerProps, GetDirectionsComponent, type GetDirectionsProps, GridSectionComponent, type GridSectionProps, Heading, type HeadingProps, HeadingTextComponent, type HeadingTextProps, HoursCardComponent, type HoursCardProps, HoursStatusComponent, type HoursStatusProps, ImageWrapperComponent, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent, type PhoneProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, TextListComponent, type TextListProps, type ThemeConfig, type YextEntityField, YextEntityFieldSelector, applyTheme, bodyVariants, buttonVariants, headingVariants, resolveVisualEditorData, resolveYextEntityField, sectionVariants, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields };
package/dist/index.d.ts CHANGED
@@ -2,25 +2,34 @@ import * as class_variance_authority_dist_types from 'class-variance-authority/d
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
+ import { CustomField, Field, ComponentConfig, Config } from '@measured/puck';
5
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import { Field, ComponentConfig, Config } from '@measured/puck';
7
- import { AddressType, GetDirectionsConfig, DayOfWeekNames, ImageType } from '@yext/pages-components';
7
+ import { AddressType, GetDirectionsConfig, Coordinate, DayOfWeekNames, ImageType } from '@yext/pages-components';
8
+
9
+ type NumberOrDefault = number | "default";
10
+ type NumberFieldWithDefaultOptionProps = {
11
+ label: string;
12
+ defaultCustomValue: number;
13
+ };
14
+ declare const NumberFieldWithDefaultOption: ({ label, defaultCustomValue, }: NumberFieldWithDefaultOptionProps) => CustomField<NumberOrDefault>;
8
15
 
9
16
  declare const bodyVariants: (props?: ({
10
- fontWeight?: "default" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black" | null | undefined;
11
- color?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | null | undefined;
17
+ fontWeight?: "default" | "bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black" | null | undefined;
18
+ color?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | null | undefined;
12
19
  textTransform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
13
20
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
14
21
  interface BodyProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof bodyVariants> {
22
+ fontSize: NumberOrDefault;
15
23
  }
16
24
  declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLParagraphElement>>;
17
25
 
18
26
  declare const buttonVariants: (props?: ({
19
- variant?: "primary" | "secondary" | "link" | "outline" | null | undefined;
20
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
27
+ variant?: "link" | "primary" | "secondary" | "outline" | null | undefined;
28
+ size?: "default" | "icon" | "sm" | "lg" | null | undefined;
21
29
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
22
30
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
23
31
  asChild?: boolean;
32
+ fontSize?: NumberOrDefault;
24
33
  }
25
34
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
26
35
 
@@ -29,26 +38,28 @@ interface CTAProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement
29
38
  url?: string;
30
39
  variant?: ButtonProps["variant"];
31
40
  size?: ButtonProps["size"];
41
+ fontSize?: NumberOrDefault;
32
42
  }
33
43
  declare const CTA: {
34
- ({ label, url, variant, size, className }: CTAProps): react_jsx_runtime.JSX.Element;
44
+ ({ label, url, variant, size, className, fontSize, }: CTAProps): react_jsx_runtime.JSX.Element;
35
45
  displayName: string;
36
46
  };
37
47
 
38
48
  declare const headingVariants: (props?: ({
39
- weight?: "default" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black" | null | undefined;
40
- color?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | null | undefined;
49
+ weight?: "default" | "bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black" | null | undefined;
50
+ color?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | null | undefined;
41
51
  transform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
42
52
  level?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
43
53
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
44
54
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
45
55
  interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
46
56
  level?: HeadingLevel;
57
+ fontSize: NumberOrDefault;
47
58
  }
48
59
  declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
49
60
 
50
61
  declare const sectionVariants: (props?: ({
51
- padding?: "default" | "none" | "small" | "large" | null | undefined;
62
+ padding?: "default" | "small" | "none" | "large" | null | undefined;
52
63
  maxWidth?: "default" | "full" | "xl" | null | undefined;
53
64
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
54
65
  interface SectionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof sectionVariants> {
@@ -119,20 +130,34 @@ type AddressProps = {
119
130
  };
120
131
  declare const AddressComponent: ComponentConfig<AddressProps>;
121
132
 
133
+ type GetDirectionsProps = {
134
+ coordinate: YextEntityField<Coordinate>;
135
+ getDirectionsProvider: GetDirectionsConfig["provider"];
136
+ variant: ButtonProps["variant"];
137
+ size: ButtonProps["size"];
138
+ alignment: "items-start" | "items-center";
139
+ padding: VariantProps<typeof sectionVariants>["padding"];
140
+ fontSize?: NumberOrDefault;
141
+ };
142
+ declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
143
+
122
144
  interface BodyTextProps extends BodyProps {
123
145
  text: YextEntityField<string>;
124
146
  }
125
147
  declare const BodyTextComponent: ComponentConfig<BodyTextProps>;
126
148
 
127
- interface CTAWrapperProps extends CTAProps {
149
+ interface CTAWrapperProps {
128
150
  entityField: YextEntityField<CTAProps>;
151
+ variant: CTAProps["variant"];
152
+ fontSize: NumberOrDefault;
153
+ className?: CTAProps["className"];
129
154
  }
130
155
  declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
131
156
 
132
157
  declare const emailsVariants: (props?: ({
133
158
  fontSize?: "default" | "medium" | "sm" | "lg" | "xl" | "xs" | "2xl" | "3xl" | "4xl" | "5xl" | null | undefined;
134
- fontWeight?: "default" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black" | null | undefined;
135
- color?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | "foreground" | null | undefined;
159
+ fontWeight?: "default" | "bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black" | null | undefined;
160
+ color?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | "foreground" | null | undefined;
136
161
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
137
162
  interface EmailsProps extends VariantProps<typeof emailsVariants> {
138
163
  list: YextEntityField<string[]>;
@@ -142,11 +167,11 @@ interface EmailsProps extends VariantProps<typeof emailsVariants> {
142
167
  declare const EmailsComponent: ComponentConfig<EmailsProps>;
143
168
 
144
169
  declare const flexContainerVariants: (props?: ({
145
- direction?: "row" | "column" | null | undefined;
146
- alignment?: "center" | "end" | "start" | "stretch" | null | undefined;
170
+ direction?: "column" | "row" | null | undefined;
171
+ alignment?: "stretch" | "center" | "end" | "start" | null | undefined;
147
172
  justification?: "center" | "end" | "start" | "spaceBetween" | "spaceAround" | null | undefined;
148
- spacing?: "medium" | "small" | "large" | null | undefined;
149
- wrap?: "wrap" | "nowrap" | null | undefined;
173
+ spacing?: "small" | "medium" | "large" | null | undefined;
174
+ wrap?: "nowrap" | "wrap" | null | undefined;
150
175
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
151
176
  interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexContainerVariants> {
152
177
  renderDropZone?: any;
@@ -154,16 +179,16 @@ interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement>, Varia
154
179
  declare const FlexContainerComponent: ComponentConfig<FlexContainerProps>;
155
180
 
156
181
  declare const backgroundVariants: (props?: ({
157
- backgroundColor?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | null | undefined;
182
+ backgroundColor?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | null | undefined;
158
183
  maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
159
184
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
160
185
  declare const gridSectionVariants: (props?: ({
161
- horizontalSpacing?: "medium" | "small" | "large" | null | undefined;
186
+ horizontalSpacing?: "small" | "medium" | "large" | null | undefined;
162
187
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
163
188
  declare const columnVariants: (props?: ({
164
189
  verticalAlignment?: "center" | "end" | "start" | "spaceBetween" | null | undefined;
165
- verticalSpacing?: "default" | "medium" | "small" | "large" | null | undefined;
166
- padding?: "medium" | "none" | "small" | "large" | null | undefined;
190
+ verticalSpacing?: "default" | "small" | "medium" | "large" | null | undefined;
191
+ padding?: "small" | "medium" | "none" | "large" | null | undefined;
167
192
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
168
193
  interface ColumnProps extends VariantProps<typeof columnVariants> {
169
194
  span?: number;
@@ -200,9 +225,9 @@ interface HoursStatusProps {
200
225
  declare const HoursStatusComponent: ComponentConfig<HoursStatusProps>;
201
226
 
202
227
  declare const imageWrapperVariants: (props?: ({
203
- size?: "medium" | "small" | "large" | "full" | null | undefined;
204
- aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
205
- rounded?: "medium" | "none" | "small" | "large" | "full" | null | undefined;
228
+ size?: "small" | "medium" | "large" | "full" | null | undefined;
229
+ aspectRatio?: "auto" | "square" | "video" | "portrait" | null | undefined;
230
+ rounded?: "small" | "medium" | "none" | "large" | "full" | null | undefined;
206
231
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
207
232
  interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
208
233
  image: YextEntityField<ImageType>;
@@ -210,8 +235,8 @@ interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
210
235
  declare const ImageWrapperComponent: ComponentConfig<ImageWrapperProps>;
211
236
 
212
237
  declare const phoneVariants: (props?: ({
213
- fontWeight?: "default" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black" | null | undefined;
214
- color?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | "foreground" | null | undefined;
238
+ fontWeight?: "default" | "bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black" | null | undefined;
239
+ color?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | "foreground" | null | undefined;
215
240
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
216
241
  interface PhoneProps extends VariantProps<typeof phoneVariants> {
217
242
  phone: YextEntityField<string>;
@@ -220,10 +245,10 @@ interface PhoneProps extends VariantProps<typeof phoneVariants> {
220
245
  declare const PhoneComponent: ComponentConfig<PhoneProps>;
221
246
 
222
247
  declare const textListVariants: (props?: ({
223
- fontWeight?: "default" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black" | null | undefined;
224
- color?: "default" | "primary" | "secondary" | "accent" | "text" | "background" | null | undefined;
248
+ fontWeight?: "default" | "bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black" | null | undefined;
249
+ color?: "default" | "text" | "primary" | "secondary" | "accent" | "background" | null | undefined;
225
250
  textTransform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
226
- padding?: "default" | "none" | "small" | "large" | null | undefined;
251
+ padding?: "default" | "small" | "none" | "large" | null | undefined;
227
252
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
228
253
  interface TextListProps extends VariantProps<typeof textListVariants> {
229
254
  list: YextEntityField<string[]>;
@@ -321,8 +346,8 @@ type Document = {
321
346
  };
322
347
  declare const applyTheme: (document: Document, themeConfig: ThemeConfig, base?: string) => string;
323
348
 
324
- declare function resolveVisualEditorData(data: any, pageSet: string | undefined): string;
349
+ declare function resolveVisualEditorData(data: any, pageSet: string | undefined): any;
325
350
 
326
351
  declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField<T>) => T | undefined;
327
352
 
328
- export { AddressComponent, type AddressProps, Body, type BodyProps, BodyTextComponent, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent, type CTAWrapperProps, DocumentContext, DocumentProvider, Editor, EmailsComponent, type EmailsProps, EntityField, EntityFieldsProvider, FlexContainerComponent, type FlexContainerProps, GridSectionComponent, type GridSectionProps, Heading, type HeadingProps, HeadingTextComponent, type HeadingTextProps, HoursCardComponent, type HoursCardProps, HoursStatusComponent, type HoursStatusProps, ImageWrapperComponent, type ImageWrapperProps, PhoneComponent, type PhoneProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, TextListComponent, type TextListProps, type ThemeConfig, type YextEntityField, YextEntityFieldSelector, applyTheme, bodyVariants, buttonVariants, headingVariants, resolveVisualEditorData, resolveYextEntityField, sectionVariants, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields };
353
+ export { AddressComponent, type AddressProps, Body, type BodyProps, BodyTextComponent, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent, type CTAWrapperProps, DocumentContext, DocumentProvider, Editor, EmailsComponent, type EmailsProps, EntityField, EntityFieldsProvider, FlexContainerComponent, type FlexContainerProps, GetDirectionsComponent, type GetDirectionsProps, GridSectionComponent, type GridSectionProps, Heading, type HeadingProps, HeadingTextComponent, type HeadingTextProps, HoursCardComponent, type HoursCardProps, HoursStatusComponent, type HoursStatusProps, ImageWrapperComponent, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent, type PhoneProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, TextListComponent, type TextListProps, type ThemeConfig, type YextEntityField, YextEntityFieldSelector, applyTheme, bodyVariants, buttonVariants, headingVariants, resolveVisualEditorData, resolveYextEntityField, sectionVariants, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields };