@measured/puck 0.19.0-canary.e62832e → 0.19.0-canary.e829bea0

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.
@@ -23,6 +23,7 @@ type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
23
23
  type BaseField = {
24
24
  label?: string;
25
25
  labelIcon?: ReactElement;
26
+ metadata?: Metadata;
26
27
  };
27
28
  type TextField = BaseField & {
28
29
  type: "text";
@@ -120,6 +121,11 @@ type CustomField<Props extends any = {}> = BaseField & {
120
121
  readOnly?: boolean;
121
122
  }) => ReactElement;
122
123
  };
124
+ type SlotField = BaseField & {
125
+ type: "slot";
126
+ allow?: string[];
127
+ disallow?: string[];
128
+ };
123
129
  type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
124
130
  [key: string]: any;
125
131
  } ? Props : any> | ObjectField<Props extends {
@@ -128,7 +134,7 @@ type Field<Props extends any = any> = TextField | NumberField | TextareaField |
128
134
  [key: string]: any;
129
135
  } ? Props : any> | ExternalFieldWithAdaptor<Props extends {
130
136
  [key: string]: any;
131
- } ? Props : any> | CustomField<Props>;
137
+ } ? Props : any> | CustomField<Props> | SlotField;
132
138
  type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps> = {
133
139
  [PropName in keyof Omit<ComponentProps, "editMode">]: Field<ComponentProps[PropName]>;
134
140
  };
@@ -141,15 +147,20 @@ type FieldProps<F = Field<any>, ValueType = any> = {
141
147
  };
142
148
 
143
149
  type PuckComponent<Props> = (props: WithId<WithPuckProps<Props>>) => JSX.Element;
150
+ type ResolveDataTrigger = "insert" | "replace" | "load" | "force";
144
151
  type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponentProps, FieldProps extends DefaultComponentProps = RenderProps, DataShape = Omit<ComponentData<FieldProps>, "type">> = {
145
- render: PuckComponent<RenderProps>;
152
+ render: PuckComponent<{
153
+ [PropName in keyof RenderProps]: RenderProps[PropName] extends Slot ? (props?: Omit<DropZoneProps, "zone">) => ReactNode : RenderProps[PropName];
154
+ }>;
146
155
  label?: string;
147
156
  defaultProps?: FieldProps;
148
157
  fields?: Fields<FieldProps>;
149
158
  permissions?: Partial<Permissions>;
150
159
  inline?: boolean;
151
160
  resolveFields?: (data: DataShape, params: {
152
- changed: Partial<Record<keyof FieldProps, boolean>>;
161
+ changed: Partial<Record<keyof FieldProps, boolean> & {
162
+ id: string;
163
+ }>;
153
164
  fields: Fields<FieldProps>;
154
165
  lastFields: Fields<FieldProps>;
155
166
  lastData: DataShape | null;
@@ -157,9 +168,12 @@ type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponen
157
168
  parent: ComponentData | null;
158
169
  }) => Promise<Fields<FieldProps>> | Fields<FieldProps>;
159
170
  resolveData?: (data: DataShape, params: {
160
- changed: Partial<Record<keyof FieldProps, boolean>>;
171
+ changed: Partial<Record<keyof FieldProps, boolean> & {
172
+ id: string;
173
+ }>;
161
174
  lastData: DataShape | null;
162
175
  metadata: Metadata;
176
+ trigger: ResolveDataTrigger;
163
177
  }) => Promise<{
164
178
  props?: Partial<FieldProps>;
165
179
  readOnly?: Partial<Record<keyof FieldProps, boolean>>;
@@ -168,13 +182,17 @@ type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponen
168
182
  readOnly?: Partial<Record<keyof FieldProps, boolean>>;
169
183
  };
170
184
  resolvePermissions?: (data: DataShape, params: {
171
- changed: Partial<Record<keyof FieldProps, boolean>>;
185
+ changed: Partial<Record<keyof FieldProps, boolean> & {
186
+ id: string;
187
+ }>;
172
188
  lastPermissions: Partial<Permissions>;
173
189
  permissions: Partial<Permissions>;
174
190
  appState: AppState;
175
191
  lastData: DataShape | null;
176
192
  }) => Promise<Partial<Permissions>> | Partial<Permissions>;
193
+ metadata?: Metadata;
177
194
  };
195
+ type RootConfig<RootProps extends DefaultComponentProps = any> = Partial<ComponentConfig<WithChildren<RootProps>, AsFieldProps<RootProps>, RootData<AsFieldProps<RootProps>>>>;
178
196
  type Category<ComponentName> = {
179
197
  components?: ComponentName[];
180
198
  title?: string;
@@ -188,7 +206,7 @@ type Config<Props extends DefaultComponentProps = DefaultComponentProps, RootPro
188
206
  components: {
189
207
  [ComponentName in keyof Props]: Omit<ComponentConfig<Props[ComponentName], Props[ComponentName]>, "type">;
190
208
  };
191
- root?: Partial<ComponentConfig<WithChildren<RootProps>, AsFieldProps<RootProps>, RootData<AsFieldProps<RootProps>>>>;
209
+ root?: RootConfig<RootProps>;
192
210
  };
193
211
 
194
212
  type WithId<Props> = Props & {
@@ -204,7 +222,7 @@ type WithChildren<Props> = Props & {
204
222
  };
205
223
  type ExtractPropsFromConfig<UserConfig> = UserConfig extends Config<infer P, any, any> ? P : never;
206
224
  type ExtractRootPropsFromConfig<UserConfig> = UserConfig extends Config<any, infer P, any> ? P : never;
207
- type UserGenerics<UserConfig extends Config = Config, UserProps extends ExtractPropsFromConfig<UserConfig> = ExtractPropsFromConfig<UserConfig>, UserRootProps extends ExtractRootPropsFromConfig<UserConfig> = ExtractRootPropsFromConfig<UserConfig>, UserData extends Data<UserProps, UserRootProps> | Data = Data<UserProps, UserRootProps>, UserAppState extends AppState<UserData> = AppState<UserData>, UserComponentData extends ComponentData = UserData["content"][0]> = {
225
+ type UserGenerics<UserConfig extends Config = Config, UserProps extends ExtractPropsFromConfig<UserConfig> = ExtractPropsFromConfig<UserConfig>, UserRootProps extends ExtractRootPropsFromConfig<UserConfig> = ExtractRootPropsFromConfig<UserConfig>, UserData extends Data<UserProps, UserRootProps> | Data = Data<UserProps, UserRootProps>, UserAppState extends PrivateAppState<UserData> = PrivateAppState<UserData>, UserComponentData extends ComponentData = UserData["content"][0]> = {
208
226
  UserConfig: UserConfig;
209
227
  UserProps: UserProps;
210
228
  UserRootProps: UserRootProps;
@@ -300,6 +318,27 @@ type AppState<UserData extends Data = Data> = {
300
318
  ui: UiState;
301
319
  };
302
320
 
321
+ type ZoneType = "root" | "dropzone" | "slot";
322
+ type PuckNodeData = {
323
+ data: ComponentData;
324
+ flatData: ComponentData;
325
+ parentId: string | null;
326
+ zone: string;
327
+ path: string[];
328
+ };
329
+ type PuckZoneData = {
330
+ contentIds: string[];
331
+ type: ZoneType;
332
+ };
333
+ type NodeIndex = Record<string, PuckNodeData>;
334
+ type ZoneIndex = Record<string, PuckZoneData>;
335
+ type PrivateAppState<UserData extends Data = Data> = AppState<UserData> & {
336
+ indexes: {
337
+ nodes: NodeIndex;
338
+ zones: ZoneIndex;
339
+ };
340
+ };
341
+
303
342
  type RenderFunc<Props extends {
304
343
  [key: string]: any;
305
344
  } = {
@@ -406,6 +445,7 @@ type InitialHistoryNoAppend<AS = Partial<AppState>> = {
406
445
  appendData?: false;
407
446
  };
408
447
  type InitialHistory<AS = Partial<AppState>> = InitialHistoryAppend<AS> | InitialHistoryNoAppend<AS>;
448
+ type Slot = Content;
409
449
 
410
450
  type InsertAction = {
411
451
  type: "insert";
@@ -419,11 +459,17 @@ type DuplicateAction = {
419
459
  sourceIndex: number;
420
460
  sourceZone: string;
421
461
  };
422
- type ReplaceAction = {
462
+ type ReplaceAction<UserData extends Data = Data> = {
423
463
  type: "replace";
424
464
  destinationIndex: number;
425
465
  destinationZone: string;
426
- data: any;
466
+ data: ComponentData;
467
+ ui?: Partial<AppState<UserData>["ui"]>;
468
+ };
469
+ type ReplaceRootAction<UserData extends Data = Data> = {
470
+ type: "replaceRoot";
471
+ root: RootData;
472
+ ui?: Partial<AppState<UserData>["ui"]>;
427
473
  };
428
474
  type ReorderAction = {
429
475
  type: "reorder";
@@ -453,7 +499,7 @@ type SetDataAction = {
453
499
  };
454
500
  type SetAction<UserData extends Data = Data> = {
455
501
  type: "set";
456
- state: Partial<AppState<UserData>> | ((previous: AppState<UserData>) => Partial<AppState<UserData>>);
502
+ state: Partial<PrivateAppState<UserData>> | ((previous: PrivateAppState<UserData>) => Partial<PrivateAppState<UserData>>);
457
503
  };
458
504
  type RegisterZoneAction = {
459
505
  type: "registerZone";
@@ -465,7 +511,7 @@ type UnregisterZoneAction = {
465
511
  };
466
512
  type PuckAction = {
467
513
  recordHistory?: boolean;
468
- } & (ReorderAction | InsertAction | MoveAction | ReplaceAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
514
+ } & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
469
515
 
470
516
  type PropTransform<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends DefaultComponentProps = DefaultRootFieldProps> = Partial<{
471
517
  [ComponentName in keyof Props]: (props: Props[ComponentName] & {
@@ -480,4 +526,4 @@ declare function transformProps<Props extends DefaultComponentProps = DefaultCom
480
526
 
481
527
  declare function resolveAllData<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends Record<string, any> = DefaultRootFieldProps>(data: Partial<Data>, config: Config, metadata?: Metadata, onResolveStart?: (item: ComponentData) => void, onResolveEnd?: (item: ComponentData) => void): Promise<Data<Props, RootProps>>;
482
528
 
483
- export { type DefaultComponentProps as $, type AppState as A, type BaseData as B, type Config as C, type DropZoneProps as D, type RadioField as E, type FieldProps as F, type ArrayField as G, type History as H, type IframeConfig as I, type ObjectField as J, type Adaptor as K, type ExternalFieldWithAdaptor as L, type Metadata as M, type NumberField as N, type OnAction as O, type Permissions as P, type ExternalField as Q, type RootDataWithProps as R, type SelectField as S, type TextField as T, type UserGenerics as U, type Viewports as V, type CustomField as W, type PuckContext as X, type DefaultRootFieldProps as Y, type DefaultRootRenderProps as Z, type DefaultRootProps as _, type Field as a, type WithId as a0, type WithPuckProps as a1, type AsFieldProps as a2, type WithChildren as a3, type ExtractPropsFromConfig as a4, type ExtractRootPropsFromConfig as a5, transformProps as a6, resolveAllData as a7, type Data as b, type UiState as c, type Plugin as d, type Overrides as e, type PuckAction as f, type InitialHistory as g, type ComponentData as h, type Fields as i, type ComponentConfig as j, type Direction as k, type DragAxis as l, type Viewport as m, type OverrideKey as n, overrideKeys as o, type FieldRenderFunctions as p, type ItemWithId as q, type ArrayState as r, type PuckComponent as s, type RootDataWithoutProps as t, type RootData as u, type MappedItem as v, type ComponentDataMap as w, type Content as x, type BaseField as y, type TextareaField as z };
529
+ export { type SlotField as $, type AppState as A, type BaseData as B, type ComponentData as C, type DropZoneProps as D, type ComponentDataMap as E, type Fields as F, type BaseField as G, type History as H, type IframeConfig as I, type TextareaField as J, type SelectField as K, type RadioField as L, type Metadata as M, type NumberField as N, type Overrides as O, type Permissions as P, type ArrayField as Q, type RootDataWithProps as R, type Slot as S, type TextField as T, type UserGenerics as U, type Viewports as V, type ObjectField as W, type Adaptor as X, type ExternalFieldWithAdaptor as Y, type ExternalField as Z, type CustomField as _, type Config as a, type PuckContext as a0, type DefaultRootFieldProps as a1, type DefaultRootRenderProps as a2, type DefaultRootProps as a3, type DefaultComponentProps as a4, type WithId as a5, type WithPuckProps as a6, type AsFieldProps as a7, type WithChildren as a8, type ExtractPropsFromConfig as a9, type ExtractRootPropsFromConfig as aa, transformProps as ab, resolveAllData as ac, type PuckAction as b, type ResolveDataTrigger as c, type Plugin as d, type UiState as e, type ComponentConfig as f, type Field as g, type FieldProps as h, type Data as i, type OnAction as j, type InitialHistory as k, type RootData as l, type Content as m, type ItemSelector as n, type Direction as o, type DragAxis as p, type Viewport as q, overrideKeys as r, type OverrideKey as s, type FieldRenderFunctions as t, type ItemWithId as u, type ArrayState as v, type PuckComponent as w, type RootConfig as x, type RootDataWithoutProps as y, type MappedItem as z };
@@ -23,6 +23,7 @@ type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
23
23
  type BaseField = {
24
24
  label?: string;
25
25
  labelIcon?: ReactElement;
26
+ metadata?: Metadata;
26
27
  };
27
28
  type TextField = BaseField & {
28
29
  type: "text";
@@ -120,6 +121,11 @@ type CustomField<Props extends any = {}> = BaseField & {
120
121
  readOnly?: boolean;
121
122
  }) => ReactElement;
122
123
  };
124
+ type SlotField = BaseField & {
125
+ type: "slot";
126
+ allow?: string[];
127
+ disallow?: string[];
128
+ };
123
129
  type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
124
130
  [key: string]: any;
125
131
  } ? Props : any> | ObjectField<Props extends {
@@ -128,7 +134,7 @@ type Field<Props extends any = any> = TextField | NumberField | TextareaField |
128
134
  [key: string]: any;
129
135
  } ? Props : any> | ExternalFieldWithAdaptor<Props extends {
130
136
  [key: string]: any;
131
- } ? Props : any> | CustomField<Props>;
137
+ } ? Props : any> | CustomField<Props> | SlotField;
132
138
  type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps> = {
133
139
  [PropName in keyof Omit<ComponentProps, "editMode">]: Field<ComponentProps[PropName]>;
134
140
  };
@@ -141,15 +147,20 @@ type FieldProps<F = Field<any>, ValueType = any> = {
141
147
  };
142
148
 
143
149
  type PuckComponent<Props> = (props: WithId<WithPuckProps<Props>>) => JSX.Element;
150
+ type ResolveDataTrigger = "insert" | "replace" | "load" | "force";
144
151
  type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponentProps, FieldProps extends DefaultComponentProps = RenderProps, DataShape = Omit<ComponentData<FieldProps>, "type">> = {
145
- render: PuckComponent<RenderProps>;
152
+ render: PuckComponent<{
153
+ [PropName in keyof RenderProps]: RenderProps[PropName] extends Slot ? (props?: Omit<DropZoneProps, "zone">) => ReactNode : RenderProps[PropName];
154
+ }>;
146
155
  label?: string;
147
156
  defaultProps?: FieldProps;
148
157
  fields?: Fields<FieldProps>;
149
158
  permissions?: Partial<Permissions>;
150
159
  inline?: boolean;
151
160
  resolveFields?: (data: DataShape, params: {
152
- changed: Partial<Record<keyof FieldProps, boolean>>;
161
+ changed: Partial<Record<keyof FieldProps, boolean> & {
162
+ id: string;
163
+ }>;
153
164
  fields: Fields<FieldProps>;
154
165
  lastFields: Fields<FieldProps>;
155
166
  lastData: DataShape | null;
@@ -157,9 +168,12 @@ type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponen
157
168
  parent: ComponentData | null;
158
169
  }) => Promise<Fields<FieldProps>> | Fields<FieldProps>;
159
170
  resolveData?: (data: DataShape, params: {
160
- changed: Partial<Record<keyof FieldProps, boolean>>;
171
+ changed: Partial<Record<keyof FieldProps, boolean> & {
172
+ id: string;
173
+ }>;
161
174
  lastData: DataShape | null;
162
175
  metadata: Metadata;
176
+ trigger: ResolveDataTrigger;
163
177
  }) => Promise<{
164
178
  props?: Partial<FieldProps>;
165
179
  readOnly?: Partial<Record<keyof FieldProps, boolean>>;
@@ -168,13 +182,17 @@ type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponen
168
182
  readOnly?: Partial<Record<keyof FieldProps, boolean>>;
169
183
  };
170
184
  resolvePermissions?: (data: DataShape, params: {
171
- changed: Partial<Record<keyof FieldProps, boolean>>;
185
+ changed: Partial<Record<keyof FieldProps, boolean> & {
186
+ id: string;
187
+ }>;
172
188
  lastPermissions: Partial<Permissions>;
173
189
  permissions: Partial<Permissions>;
174
190
  appState: AppState;
175
191
  lastData: DataShape | null;
176
192
  }) => Promise<Partial<Permissions>> | Partial<Permissions>;
193
+ metadata?: Metadata;
177
194
  };
195
+ type RootConfig<RootProps extends DefaultComponentProps = any> = Partial<ComponentConfig<WithChildren<RootProps>, AsFieldProps<RootProps>, RootData<AsFieldProps<RootProps>>>>;
178
196
  type Category<ComponentName> = {
179
197
  components?: ComponentName[];
180
198
  title?: string;
@@ -188,7 +206,7 @@ type Config<Props extends DefaultComponentProps = DefaultComponentProps, RootPro
188
206
  components: {
189
207
  [ComponentName in keyof Props]: Omit<ComponentConfig<Props[ComponentName], Props[ComponentName]>, "type">;
190
208
  };
191
- root?: Partial<ComponentConfig<WithChildren<RootProps>, AsFieldProps<RootProps>, RootData<AsFieldProps<RootProps>>>>;
209
+ root?: RootConfig<RootProps>;
192
210
  };
193
211
 
194
212
  type WithId<Props> = Props & {
@@ -204,7 +222,7 @@ type WithChildren<Props> = Props & {
204
222
  };
205
223
  type ExtractPropsFromConfig<UserConfig> = UserConfig extends Config<infer P, any, any> ? P : never;
206
224
  type ExtractRootPropsFromConfig<UserConfig> = UserConfig extends Config<any, infer P, any> ? P : never;
207
- type UserGenerics<UserConfig extends Config = Config, UserProps extends ExtractPropsFromConfig<UserConfig> = ExtractPropsFromConfig<UserConfig>, UserRootProps extends ExtractRootPropsFromConfig<UserConfig> = ExtractRootPropsFromConfig<UserConfig>, UserData extends Data<UserProps, UserRootProps> | Data = Data<UserProps, UserRootProps>, UserAppState extends AppState<UserData> = AppState<UserData>, UserComponentData extends ComponentData = UserData["content"][0]> = {
225
+ type UserGenerics<UserConfig extends Config = Config, UserProps extends ExtractPropsFromConfig<UserConfig> = ExtractPropsFromConfig<UserConfig>, UserRootProps extends ExtractRootPropsFromConfig<UserConfig> = ExtractRootPropsFromConfig<UserConfig>, UserData extends Data<UserProps, UserRootProps> | Data = Data<UserProps, UserRootProps>, UserAppState extends PrivateAppState<UserData> = PrivateAppState<UserData>, UserComponentData extends ComponentData = UserData["content"][0]> = {
208
226
  UserConfig: UserConfig;
209
227
  UserProps: UserProps;
210
228
  UserRootProps: UserRootProps;
@@ -300,6 +318,27 @@ type AppState<UserData extends Data = Data> = {
300
318
  ui: UiState;
301
319
  };
302
320
 
321
+ type ZoneType = "root" | "dropzone" | "slot";
322
+ type PuckNodeData = {
323
+ data: ComponentData;
324
+ flatData: ComponentData;
325
+ parentId: string | null;
326
+ zone: string;
327
+ path: string[];
328
+ };
329
+ type PuckZoneData = {
330
+ contentIds: string[];
331
+ type: ZoneType;
332
+ };
333
+ type NodeIndex = Record<string, PuckNodeData>;
334
+ type ZoneIndex = Record<string, PuckZoneData>;
335
+ type PrivateAppState<UserData extends Data = Data> = AppState<UserData> & {
336
+ indexes: {
337
+ nodes: NodeIndex;
338
+ zones: ZoneIndex;
339
+ };
340
+ };
341
+
303
342
  type RenderFunc<Props extends {
304
343
  [key: string]: any;
305
344
  } = {
@@ -406,6 +445,7 @@ type InitialHistoryNoAppend<AS = Partial<AppState>> = {
406
445
  appendData?: false;
407
446
  };
408
447
  type InitialHistory<AS = Partial<AppState>> = InitialHistoryAppend<AS> | InitialHistoryNoAppend<AS>;
448
+ type Slot = Content;
409
449
 
410
450
  type InsertAction = {
411
451
  type: "insert";
@@ -419,11 +459,17 @@ type DuplicateAction = {
419
459
  sourceIndex: number;
420
460
  sourceZone: string;
421
461
  };
422
- type ReplaceAction = {
462
+ type ReplaceAction<UserData extends Data = Data> = {
423
463
  type: "replace";
424
464
  destinationIndex: number;
425
465
  destinationZone: string;
426
- data: any;
466
+ data: ComponentData;
467
+ ui?: Partial<AppState<UserData>["ui"]>;
468
+ };
469
+ type ReplaceRootAction<UserData extends Data = Data> = {
470
+ type: "replaceRoot";
471
+ root: RootData;
472
+ ui?: Partial<AppState<UserData>["ui"]>;
427
473
  };
428
474
  type ReorderAction = {
429
475
  type: "reorder";
@@ -453,7 +499,7 @@ type SetDataAction = {
453
499
  };
454
500
  type SetAction<UserData extends Data = Data> = {
455
501
  type: "set";
456
- state: Partial<AppState<UserData>> | ((previous: AppState<UserData>) => Partial<AppState<UserData>>);
502
+ state: Partial<PrivateAppState<UserData>> | ((previous: PrivateAppState<UserData>) => Partial<PrivateAppState<UserData>>);
457
503
  };
458
504
  type RegisterZoneAction = {
459
505
  type: "registerZone";
@@ -465,7 +511,7 @@ type UnregisterZoneAction = {
465
511
  };
466
512
  type PuckAction = {
467
513
  recordHistory?: boolean;
468
- } & (ReorderAction | InsertAction | MoveAction | ReplaceAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
514
+ } & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
469
515
 
470
516
  type PropTransform<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends DefaultComponentProps = DefaultRootFieldProps> = Partial<{
471
517
  [ComponentName in keyof Props]: (props: Props[ComponentName] & {
@@ -480,4 +526,4 @@ declare function transformProps<Props extends DefaultComponentProps = DefaultCom
480
526
 
481
527
  declare function resolveAllData<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends Record<string, any> = DefaultRootFieldProps>(data: Partial<Data>, config: Config, metadata?: Metadata, onResolveStart?: (item: ComponentData) => void, onResolveEnd?: (item: ComponentData) => void): Promise<Data<Props, RootProps>>;
482
528
 
483
- export { type DefaultComponentProps as $, type AppState as A, type BaseData as B, type Config as C, type DropZoneProps as D, type RadioField as E, type FieldProps as F, type ArrayField as G, type History as H, type IframeConfig as I, type ObjectField as J, type Adaptor as K, type ExternalFieldWithAdaptor as L, type Metadata as M, type NumberField as N, type OnAction as O, type Permissions as P, type ExternalField as Q, type RootDataWithProps as R, type SelectField as S, type TextField as T, type UserGenerics as U, type Viewports as V, type CustomField as W, type PuckContext as X, type DefaultRootFieldProps as Y, type DefaultRootRenderProps as Z, type DefaultRootProps as _, type Field as a, type WithId as a0, type WithPuckProps as a1, type AsFieldProps as a2, type WithChildren as a3, type ExtractPropsFromConfig as a4, type ExtractRootPropsFromConfig as a5, transformProps as a6, resolveAllData as a7, type Data as b, type UiState as c, type Plugin as d, type Overrides as e, type PuckAction as f, type InitialHistory as g, type ComponentData as h, type Fields as i, type ComponentConfig as j, type Direction as k, type DragAxis as l, type Viewport as m, type OverrideKey as n, overrideKeys as o, type FieldRenderFunctions as p, type ItemWithId as q, type ArrayState as r, type PuckComponent as s, type RootDataWithoutProps as t, type RootData as u, type MappedItem as v, type ComponentDataMap as w, type Content as x, type BaseField as y, type TextareaField as z };
529
+ export { type SlotField as $, type AppState as A, type BaseData as B, type ComponentData as C, type DropZoneProps as D, type ComponentDataMap as E, type Fields as F, type BaseField as G, type History as H, type IframeConfig as I, type TextareaField as J, type SelectField as K, type RadioField as L, type Metadata as M, type NumberField as N, type Overrides as O, type Permissions as P, type ArrayField as Q, type RootDataWithProps as R, type Slot as S, type TextField as T, type UserGenerics as U, type Viewports as V, type ObjectField as W, type Adaptor as X, type ExternalFieldWithAdaptor as Y, type ExternalField as Z, type CustomField as _, type Config as a, type PuckContext as a0, type DefaultRootFieldProps as a1, type DefaultRootRenderProps as a2, type DefaultRootProps as a3, type DefaultComponentProps as a4, type WithId as a5, type WithPuckProps as a6, type AsFieldProps as a7, type WithChildren as a8, type ExtractPropsFromConfig as a9, type ExtractRootPropsFromConfig as aa, transformProps as ab, resolveAllData as ac, type PuckAction as b, type ResolveDataTrigger as c, type Plugin as d, type UiState as e, type ComponentConfig as f, type Field as g, type FieldProps as h, type Data as i, type OnAction as j, type InitialHistory as k, type RootData as l, type Content as m, type ItemSelector as n, type Direction as o, type DragAxis as p, type Viewport as q, overrideKeys as r, type OverrideKey as s, type FieldRenderFunctions as t, type ItemWithId as u, type ArrayState as v, type PuckComponent as w, type RootConfig as x, type RootDataWithoutProps as y, type MappedItem as z };