@measured/puck 0.19.0-canary.b9add22 → 0.19.0-canary.bc5bfff1
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/README.md +2 -4
- package/dist/chunk-DCJTUSJF.mjs +925 -0
- package/dist/index.css +201 -184
- package/dist/index.d.mts +152 -55
- package/dist/index.d.ts +152 -55
- package/dist/index.js +4343 -3548
- package/dist/index.mjs +3468 -3286
- package/dist/rsc.d.mts +3 -3
- package/dist/rsc.d.ts +3 -3
- package/dist/rsc.js +668 -137
- package/dist/rsc.mjs +9 -102
- package/dist/{resolve-all-data-DIpcwlzP.d.mts → walk-tree-lpK_Xw1z.d.mts} +121 -28
- package/dist/{resolve-all-data-DIpcwlzP.d.ts → walk-tree-lpK_Xw1z.d.ts} +121 -28
- package/package.json +11 -7
- package/dist/chunk-FNRHXUGA.mjs +0 -268
package/dist/rsc.mjs
CHANGED
@@ -1,111 +1,18 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
__spreadValues,
|
2
|
+
Render,
|
4
3
|
init_react_import,
|
4
|
+
migrate,
|
5
5
|
resolveAllData,
|
6
|
-
|
7
|
-
|
8
|
-
} from "./chunk-
|
6
|
+
transformProps,
|
7
|
+
walkTree
|
8
|
+
} from "./chunk-DCJTUSJF.mjs";
|
9
9
|
|
10
10
|
// rsc.tsx
|
11
11
|
init_react_import();
|
12
|
-
|
13
|
-
// components/ServerRender/index.tsx
|
14
|
-
init_react_import();
|
15
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
16
|
-
function DropZoneRender({
|
17
|
-
zone,
|
18
|
-
data,
|
19
|
-
areaId = "root",
|
20
|
-
config,
|
21
|
-
metadata = {}
|
22
|
-
}) {
|
23
|
-
let zoneCompound = rootDroppableId;
|
24
|
-
let content = (data == null ? void 0 : data.content) || [];
|
25
|
-
if (!data || !config) {
|
26
|
-
return null;
|
27
|
-
}
|
28
|
-
if (areaId && zone && zone !== rootDroppableId) {
|
29
|
-
zoneCompound = `${areaId}:${zone}`;
|
30
|
-
content = setupZone(data, zoneCompound).zones[zoneCompound];
|
31
|
-
}
|
32
|
-
return /* @__PURE__ */ jsx(Fragment, { children: content.map((item) => {
|
33
|
-
const Component = config.components[item.type];
|
34
|
-
if (Component) {
|
35
|
-
return /* @__PURE__ */ jsx(
|
36
|
-
Component.render,
|
37
|
-
__spreadProps(__spreadValues({}, item.props), {
|
38
|
-
puck: {
|
39
|
-
renderDropZone: ({ zone: zone2 }) => /* @__PURE__ */ jsx(
|
40
|
-
DropZoneRender,
|
41
|
-
{
|
42
|
-
zone: zone2,
|
43
|
-
data,
|
44
|
-
areaId: item.props.id,
|
45
|
-
config,
|
46
|
-
metadata
|
47
|
-
}
|
48
|
-
),
|
49
|
-
metadata
|
50
|
-
}
|
51
|
-
}),
|
52
|
-
item.props.id
|
53
|
-
);
|
54
|
-
}
|
55
|
-
return null;
|
56
|
-
}) });
|
57
|
-
}
|
58
|
-
function Render({
|
59
|
-
config,
|
60
|
-
data,
|
61
|
-
metadata
|
62
|
-
}) {
|
63
|
-
var _a;
|
64
|
-
if ((_a = config.root) == null ? void 0 : _a.render) {
|
65
|
-
const rootProps = data.root.props || data.root;
|
66
|
-
const title = rootProps.title || "";
|
67
|
-
return /* @__PURE__ */ jsx(
|
68
|
-
config.root.render,
|
69
|
-
__spreadProps(__spreadValues({}, rootProps), {
|
70
|
-
puck: {
|
71
|
-
renderDropZone: ({ zone }) => /* @__PURE__ */ jsx(
|
72
|
-
DropZoneRender,
|
73
|
-
{
|
74
|
-
zone,
|
75
|
-
data,
|
76
|
-
config,
|
77
|
-
metadata
|
78
|
-
}
|
79
|
-
),
|
80
|
-
isEditing: false,
|
81
|
-
dragRef: null
|
82
|
-
},
|
83
|
-
title,
|
84
|
-
editMode: false,
|
85
|
-
id: "puck-root",
|
86
|
-
children: /* @__PURE__ */ jsx(
|
87
|
-
DropZoneRender,
|
88
|
-
{
|
89
|
-
config,
|
90
|
-
data,
|
91
|
-
zone: rootDroppableId,
|
92
|
-
metadata
|
93
|
-
}
|
94
|
-
)
|
95
|
-
})
|
96
|
-
);
|
97
|
-
}
|
98
|
-
return /* @__PURE__ */ jsx(
|
99
|
-
DropZoneRender,
|
100
|
-
{
|
101
|
-
config,
|
102
|
-
data,
|
103
|
-
zone: rootDroppableId,
|
104
|
-
metadata
|
105
|
-
}
|
106
|
-
);
|
107
|
-
}
|
108
12
|
export {
|
109
13
|
Render,
|
110
|
-
|
14
|
+
migrate,
|
15
|
+
resolveAllData,
|
16
|
+
transformProps,
|
17
|
+
walkTree
|
111
18
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CSSProperties, ReactElement,
|
1
|
+
import { CSSProperties, ReactElement, ReactNode, JSX } from 'react';
|
2
2
|
|
3
3
|
type ItemSelector = {
|
4
4
|
index: number;
|
@@ -22,17 +22,23 @@ type FieldOption = {
|
|
22
22
|
type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
|
23
23
|
type BaseField = {
|
24
24
|
label?: string;
|
25
|
+
labelIcon?: ReactElement;
|
26
|
+
metadata?: Metadata;
|
25
27
|
};
|
26
28
|
type TextField = BaseField & {
|
27
29
|
type: "text";
|
30
|
+
placeholder?: string;
|
28
31
|
};
|
29
32
|
type NumberField = BaseField & {
|
30
33
|
type: "number";
|
34
|
+
placeholder?: string;
|
31
35
|
min?: number;
|
32
36
|
max?: number;
|
37
|
+
step?: number;
|
33
38
|
};
|
34
39
|
type TextareaField = BaseField & {
|
35
40
|
type: "textarea";
|
41
|
+
placeholder?: string;
|
36
42
|
};
|
37
43
|
type SelectField = BaseField & {
|
38
44
|
type: "select";
|
@@ -104,16 +110,22 @@ type ExternalField<Props extends {
|
|
104
110
|
filterFields?: Record<string, Field>;
|
105
111
|
initialFilters?: Record<string, any>;
|
106
112
|
};
|
107
|
-
type
|
113
|
+
type CustomFieldRender<Value extends any> = (props: {
|
114
|
+
field: CustomField<Value>;
|
115
|
+
name: string;
|
116
|
+
id: string;
|
117
|
+
value: Value;
|
118
|
+
onChange: (value: Value) => void;
|
119
|
+
readOnly?: boolean;
|
120
|
+
}) => ReactElement;
|
121
|
+
type CustomField<Value extends any> = BaseField & {
|
108
122
|
type: "custom";
|
109
|
-
render:
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
readOnly?: boolean;
|
116
|
-
}) => ReactElement;
|
123
|
+
render: CustomFieldRender<Value>;
|
124
|
+
};
|
125
|
+
type SlotField = BaseField & {
|
126
|
+
type: "slot";
|
127
|
+
allow?: string[];
|
128
|
+
disallow?: string[];
|
117
129
|
};
|
118
130
|
type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
|
119
131
|
[key: string]: any;
|
@@ -123,7 +135,7 @@ type Field<Props extends any = any> = TextField | NumberField | TextareaField |
|
|
123
135
|
[key: string]: any;
|
124
136
|
} ? Props : any> | ExternalFieldWithAdaptor<Props extends {
|
125
137
|
[key: string]: any;
|
126
|
-
} ? Props : any> | CustomField<Props
|
138
|
+
} ? Props : any> | CustomField<Props> | SlotField;
|
127
139
|
type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps> = {
|
128
140
|
[PropName in keyof Omit<ComponentProps, "editMode">]: Field<ComponentProps[PropName]>;
|
129
141
|
};
|
@@ -135,7 +147,17 @@ type FieldProps<F = Field<any>, ValueType = any> = {
|
|
135
147
|
readOnly?: boolean;
|
136
148
|
};
|
137
149
|
|
138
|
-
type
|
150
|
+
type SlotComponent = (props?: Omit<DropZoneProps, "zone">) => ReactNode;
|
151
|
+
/**
|
152
|
+
* Recursively walk T and replace Slots with SlotComponents
|
153
|
+
*/
|
154
|
+
type WithDeepSlots<T> = T extends Slot ? SlotComponent : T extends readonly (infer U)[] ? ReadonlyArray<WithDeepSlots<U>> : T extends (infer U)[] ? WithDeepSlots<U>[] : T extends object ? {
|
155
|
+
[K in keyof T]: WithDeepSlots<T[K]>;
|
156
|
+
} : T;
|
157
|
+
type PuckComponent<Props> = (props: WithId<WithPuckProps<{
|
158
|
+
[K in keyof Props]: WithDeepSlots<Props[K]>;
|
159
|
+
}>>) => JSX.Element;
|
160
|
+
type ResolveDataTrigger = "insert" | "replace" | "load" | "force";
|
139
161
|
type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponentProps, FieldProps extends DefaultComponentProps = RenderProps, DataShape = Omit<ComponentData<FieldProps>, "type">> = {
|
140
162
|
render: PuckComponent<RenderProps>;
|
141
163
|
label?: string;
|
@@ -144,7 +166,9 @@ type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponen
|
|
144
166
|
permissions?: Partial<Permissions>;
|
145
167
|
inline?: boolean;
|
146
168
|
resolveFields?: (data: DataShape, params: {
|
147
|
-
changed: Partial<Record<keyof FieldProps, boolean
|
169
|
+
changed: Partial<Record<keyof FieldProps, boolean> & {
|
170
|
+
id: string;
|
171
|
+
}>;
|
148
172
|
fields: Fields<FieldProps>;
|
149
173
|
lastFields: Fields<FieldProps>;
|
150
174
|
lastData: DataShape | null;
|
@@ -152,24 +176,31 @@ type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponen
|
|
152
176
|
parent: ComponentData | null;
|
153
177
|
}) => Promise<Fields<FieldProps>> | Fields<FieldProps>;
|
154
178
|
resolveData?: (data: DataShape, params: {
|
155
|
-
changed: Partial<Record<keyof FieldProps, boolean
|
179
|
+
changed: Partial<Record<keyof FieldProps, boolean> & {
|
180
|
+
id: string;
|
181
|
+
}>;
|
156
182
|
lastData: DataShape | null;
|
157
183
|
metadata: Metadata;
|
184
|
+
trigger: ResolveDataTrigger;
|
158
185
|
}) => Promise<{
|
159
186
|
props?: Partial<FieldProps>;
|
160
|
-
readOnly?: Partial<Record<keyof FieldProps, boolean
|
187
|
+
readOnly?: Partial<Record<keyof FieldProps, boolean>> & Record<string, boolean>;
|
161
188
|
}> | {
|
162
189
|
props?: Partial<FieldProps>;
|
163
|
-
readOnly?: Partial<Record<keyof FieldProps, boolean
|
190
|
+
readOnly?: Partial<Record<keyof FieldProps, boolean>> & Record<string, boolean>;
|
164
191
|
};
|
165
192
|
resolvePermissions?: (data: DataShape, params: {
|
166
|
-
changed: Partial<Record<keyof FieldProps, boolean
|
193
|
+
changed: Partial<Record<keyof FieldProps, boolean> & {
|
194
|
+
id: string;
|
195
|
+
}>;
|
167
196
|
lastPermissions: Partial<Permissions>;
|
168
197
|
permissions: Partial<Permissions>;
|
169
198
|
appState: AppState;
|
170
199
|
lastData: DataShape | null;
|
171
200
|
}) => Promise<Partial<Permissions>> | Partial<Permissions>;
|
201
|
+
metadata?: Metadata;
|
172
202
|
};
|
203
|
+
type RootConfig<RootProps extends DefaultComponentProps = any> = Partial<ComponentConfig<WithChildren<RootProps>, AsFieldProps<RootProps>, RootData<AsFieldProps<RootProps>>>>;
|
173
204
|
type Category<ComponentName> = {
|
174
205
|
components?: ComponentName[];
|
175
206
|
title?: string;
|
@@ -183,7 +214,7 @@ type Config<Props extends DefaultComponentProps = DefaultComponentProps, RootPro
|
|
183
214
|
components: {
|
184
215
|
[ComponentName in keyof Props]: Omit<ComponentConfig<Props[ComponentName], Props[ComponentName]>, "type">;
|
185
216
|
};
|
186
|
-
root?:
|
217
|
+
root?: RootConfig<RootProps>;
|
187
218
|
};
|
188
219
|
|
189
220
|
type WithId<Props> = Props & {
|
@@ -199,7 +230,7 @@ type WithChildren<Props> = Props & {
|
|
199
230
|
};
|
200
231
|
type ExtractPropsFromConfig<UserConfig> = UserConfig extends Config<infer P, any, any> ? P : never;
|
201
232
|
type ExtractRootPropsFromConfig<UserConfig> = UserConfig extends Config<any, infer P, any> ? P : never;
|
202
|
-
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
|
233
|
+
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]> = {
|
203
234
|
UserConfig: UserConfig;
|
204
235
|
UserProps: UserProps;
|
205
236
|
UserRootProps: UserRootProps;
|
@@ -231,22 +262,28 @@ type BaseData<Props extends {
|
|
231
262
|
readOnly?: Partial<Record<keyof Props, boolean>>;
|
232
263
|
};
|
233
264
|
type RootDataWithProps<Props extends DefaultComponentProps = DefaultRootFieldProps> = BaseData<Props> & {
|
234
|
-
props: Props
|
265
|
+
props: WithSlotProps<Props>;
|
235
266
|
};
|
236
267
|
type RootDataWithoutProps<Props extends DefaultComponentProps = DefaultRootFieldProps> = Props;
|
237
268
|
type RootData<Props extends DefaultComponentProps = DefaultRootFieldProps> = Partial<RootDataWithProps<AsFieldProps<Props>>> & Partial<RootDataWithoutProps<Props>>;
|
238
269
|
type ComponentData<Props extends DefaultComponentProps = DefaultComponentProps, Name = string> = {
|
239
270
|
type: Name;
|
240
|
-
props: WithId<Props
|
271
|
+
props: WithId<WithSlotProps<Props>>;
|
272
|
+
} & BaseData<Props>;
|
273
|
+
type ComponentDataOptionalId<Props extends DefaultComponentProps = DefaultComponentProps, Name = string> = {
|
274
|
+
type: Name;
|
275
|
+
props: Props & {
|
276
|
+
id?: string;
|
277
|
+
};
|
241
278
|
} & BaseData<Props>;
|
242
279
|
type MappedItem = ComponentData;
|
243
280
|
type ComponentDataMap<Props extends Record<string, DefaultComponentProps> = DefaultComponentProps> = {
|
244
281
|
[K in keyof Props]: ComponentData<Props[K], K extends string ? K : never>;
|
245
282
|
}[keyof Props];
|
246
283
|
type Content<PropsMap extends {
|
247
|
-
[key: string]:
|
284
|
+
[key: string]: DefaultComponentProps;
|
248
285
|
} = {
|
249
|
-
[key: string]:
|
286
|
+
[key: string]: DefaultComponentProps;
|
250
287
|
}> = ComponentDataMap<PropsMap>[];
|
251
288
|
type Data<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends DefaultComponentProps = DefaultRootFieldProps> = {
|
252
289
|
root: RootData<RootProps>;
|
@@ -295,6 +332,27 @@ type AppState<UserData extends Data = Data> = {
|
|
295
332
|
ui: UiState;
|
296
333
|
};
|
297
334
|
|
335
|
+
type ZoneType = "root" | "dropzone" | "slot";
|
336
|
+
type PuckNodeData = {
|
337
|
+
data: ComponentData;
|
338
|
+
flatData: ComponentData;
|
339
|
+
parentId: string | null;
|
340
|
+
zone: string;
|
341
|
+
path: string[];
|
342
|
+
};
|
343
|
+
type PuckZoneData = {
|
344
|
+
contentIds: string[];
|
345
|
+
type: ZoneType;
|
346
|
+
};
|
347
|
+
type NodeIndex = Record<string, PuckNodeData>;
|
348
|
+
type ZoneIndex = Record<string, PuckZoneData>;
|
349
|
+
type PrivateAppState<UserData extends Data = Data> = AppState<UserData> & {
|
350
|
+
indexes: {
|
351
|
+
nodes: NodeIndex;
|
352
|
+
zones: ZoneIndex;
|
353
|
+
};
|
354
|
+
};
|
355
|
+
|
298
356
|
type RenderFunc<Props extends {
|
299
357
|
[key: string]: any;
|
300
358
|
} = {
|
@@ -401,6 +459,16 @@ type InitialHistoryNoAppend<AS = Partial<AppState>> = {
|
|
401
459
|
appendData?: false;
|
402
460
|
};
|
403
461
|
type InitialHistory<AS = Partial<AppState>> = InitialHistoryAppend<AS> | InitialHistoryNoAppend<AS>;
|
462
|
+
type Slot<Props extends {
|
463
|
+
[key: string]: DefaultComponentProps;
|
464
|
+
} = {
|
465
|
+
[key: string]: DefaultComponentProps;
|
466
|
+
}> = {
|
467
|
+
[K in keyof Props]: ComponentDataOptionalId<Props[K], K extends string ? K : never>;
|
468
|
+
}[keyof Props][];
|
469
|
+
type WithSlotProps<Props extends DefaultComponentProps = DefaultComponentProps, SlotProps extends DefaultComponentProps = Props> = Props extends any ? any : {
|
470
|
+
[PropName in keyof Props]: Props[PropName] extends Slot<SlotProps> ? Content<SlotProps> : Props[PropName];
|
471
|
+
};
|
404
472
|
|
405
473
|
type InsertAction = {
|
406
474
|
type: "insert";
|
@@ -414,11 +482,17 @@ type DuplicateAction = {
|
|
414
482
|
sourceIndex: number;
|
415
483
|
sourceZone: string;
|
416
484
|
};
|
417
|
-
type ReplaceAction = {
|
485
|
+
type ReplaceAction<UserData extends Data = Data> = {
|
418
486
|
type: "replace";
|
419
487
|
destinationIndex: number;
|
420
488
|
destinationZone: string;
|
421
|
-
data:
|
489
|
+
data: ComponentData;
|
490
|
+
ui?: Partial<AppState<UserData>["ui"]>;
|
491
|
+
};
|
492
|
+
type ReplaceRootAction<UserData extends Data = Data> = {
|
493
|
+
type: "replaceRoot";
|
494
|
+
root: RootData;
|
495
|
+
ui?: Partial<AppState<UserData>["ui"]>;
|
422
496
|
};
|
423
497
|
type ReorderAction = {
|
424
498
|
type: "reorder";
|
@@ -448,7 +522,7 @@ type SetDataAction = {
|
|
448
522
|
};
|
449
523
|
type SetAction<UserData extends Data = Data> = {
|
450
524
|
type: "set";
|
451
|
-
state: Partial<
|
525
|
+
state: Partial<PrivateAppState<UserData>> | ((previous: PrivateAppState<UserData>) => Partial<PrivateAppState<UserData>>);
|
452
526
|
};
|
453
527
|
type RegisterZoneAction = {
|
454
528
|
type: "registerZone";
|
@@ -460,8 +534,27 @@ type UnregisterZoneAction = {
|
|
460
534
|
};
|
461
535
|
type PuckAction = {
|
462
536
|
recordHistory?: boolean;
|
463
|
-
} & (ReorderAction | InsertAction | MoveAction | ReplaceAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
|
537
|
+
} & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
|
538
|
+
|
539
|
+
declare function migrate(data: Data, config?: Config): Data;
|
540
|
+
|
541
|
+
type PropTransform<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends DefaultComponentProps = DefaultRootFieldProps> = Partial<{
|
542
|
+
[ComponentName in keyof Props]: (props: Props[ComponentName] & {
|
543
|
+
[key: string]: any;
|
544
|
+
}) => Props[ComponentName];
|
545
|
+
} & {
|
546
|
+
root: (props: RootProps & {
|
547
|
+
[key: string]: any;
|
548
|
+
}) => RootProps;
|
549
|
+
}>;
|
550
|
+
declare function transformProps<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends DefaultComponentProps = DefaultRootFieldProps>(data: Partial<Data>, propTransforms: PropTransform<Props, RootProps>, config?: Config): Data;
|
464
551
|
|
465
552
|
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>>;
|
466
553
|
|
467
|
-
|
554
|
+
type WalkTreeOptions = {
|
555
|
+
parentId: string;
|
556
|
+
propName: string;
|
557
|
+
};
|
558
|
+
declare function walkTree<T extends ComponentData | RootData | G["UserData"], UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>(data: T, config: UserConfig, callbackFn: (data: Content, options: WalkTreeOptions) => Content | null | void): T;
|
559
|
+
|
560
|
+
export { type ExternalFieldWithAdaptor as $, type AppState as A, type BaseData as B, type ComponentData as C, type DropZoneProps as D, type MappedItem as E, type Fields as F, type ComponentDataMap as G, type History as H, type IframeConfig as I, type Content as J, type BaseField as K, type TextareaField as L, type Metadata as M, type NumberField as N, type Overrides as O, type Permissions as P, type SelectField as Q, type RootDataWithProps as R, type Slot as S, type TextField as T, type UserGenerics as U, type Viewports as V, type WithSlotProps as W, type RadioField as X, type ArrayField as Y, type ObjectField as Z, type Adaptor as _, type Config as a, type ExternalField as a0, type CustomFieldRender as a1, type CustomField as a2, type SlotField as a3, type PuckContext as a4, type DefaultRootFieldProps as a5, type DefaultRootRenderProps as a6, type DefaultRootProps as a7, type DefaultComponentProps as a8, type WithId as a9, type WithPuckProps as aa, type AsFieldProps as ab, type WithChildren as ac, type ExtractPropsFromConfig as ad, type ExtractRootPropsFromConfig as ae, migrate as af, transformProps as ag, resolveAllData as ah, 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 ItemSelector as l, type Direction as m, type DragAxis as n, type Viewport as o, overrideKeys as p, type OverrideKey as q, type FieldRenderFunctions as r, type ItemWithId as s, type ArrayState as t, type PuckComponent as u, type RootConfig as v, walkTree as w, type RootDataWithoutProps as x, type RootData as y, type ComponentDataOptionalId as z };
|