@measured/puck 0.19.0-canary.e829bea0 → 0.19.0-canary.eda38b34
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/chunk-44RES7IE.mjs +566 -0
- package/dist/index.css +14 -16
- package/dist/index.d.mts +5 -10
- package/dist/index.d.ts +5 -10
- package/dist/index.js +612 -811
- package/dist/index.mjs +6217 -1632
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +255 -3766
- package/dist/rsc.mjs +5 -103
- package/dist/{resolve-all-data-BFRAghCj.d.mts → walk-tree-CM-cu7GU.d.mts} +42 -20
- package/dist/{resolve-all-data-BFRAghCj.d.ts → walk-tree-CM-cu7GU.d.ts} +42 -20
- package/package.json +5 -3
- package/dist/chunk-ZOHJNF5K.mjs +0 -5427
- package/dist/rsc.css +0 -339
package/dist/rsc.mjs
CHANGED
@@ -1,114 +1,16 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
__spreadProps,
|
4
|
-
__spreadValues,
|
2
|
+
Render,
|
5
3
|
init_react_import,
|
6
4
|
resolveAllData,
|
7
|
-
rootAreaId,
|
8
|
-
rootDroppableId,
|
9
|
-
rootZone,
|
10
|
-
setupZone,
|
11
5
|
transformProps,
|
12
|
-
|
13
|
-
} from "./chunk-
|
6
|
+
walkTree
|
7
|
+
} from "./chunk-44RES7IE.mjs";
|
14
8
|
|
15
9
|
// rsc.tsx
|
16
10
|
init_react_import();
|
17
|
-
|
18
|
-
// components/ServerRender/index.tsx
|
19
|
-
init_react_import();
|
20
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
21
|
-
function DropZoneRender({
|
22
|
-
zone,
|
23
|
-
data,
|
24
|
-
areaId = "root",
|
25
|
-
config,
|
26
|
-
metadata = {}
|
27
|
-
}) {
|
28
|
-
let zoneCompound = rootDroppableId;
|
29
|
-
let content = (data == null ? void 0 : data.content) || [];
|
30
|
-
if (!data || !config) {
|
31
|
-
return null;
|
32
|
-
}
|
33
|
-
if (areaId !== rootAreaId && zone !== rootZone) {
|
34
|
-
zoneCompound = `${areaId}:${zone}`;
|
35
|
-
content = setupZone(data, zoneCompound).zones[zoneCompound];
|
36
|
-
}
|
37
|
-
return /* @__PURE__ */ jsx(Fragment, { children: content.map((item) => {
|
38
|
-
const Component = config.components[item.type];
|
39
|
-
const props = __spreadProps(__spreadValues({}, item.props), {
|
40
|
-
puck: {
|
41
|
-
renderDropZone: ({ zone: zone2 }) => /* @__PURE__ */ jsx(
|
42
|
-
DropZoneRender,
|
43
|
-
{
|
44
|
-
zone: zone2,
|
45
|
-
data,
|
46
|
-
areaId: item.props.id,
|
47
|
-
config,
|
48
|
-
metadata
|
49
|
-
}
|
50
|
-
),
|
51
|
-
metadata
|
52
|
-
}
|
53
|
-
});
|
54
|
-
const propsWithSlots = useSlots(config.root, props, (props2) => /* @__PURE__ */ jsx(SlotRenderPure, __spreadProps(__spreadValues({}, props2), { config, metadata })));
|
55
|
-
if (Component) {
|
56
|
-
return /* @__PURE__ */ jsx(Component.render, __spreadValues({}, propsWithSlots), item.props.id);
|
57
|
-
}
|
58
|
-
return null;
|
59
|
-
}) });
|
60
|
-
}
|
61
|
-
function Render({
|
62
|
-
config,
|
63
|
-
data,
|
64
|
-
metadata = {}
|
65
|
-
}) {
|
66
|
-
var _a;
|
67
|
-
const rootProps = data.root.props || data.root;
|
68
|
-
const title = rootProps.title || "";
|
69
|
-
const props = __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
|
-
metadata
|
83
|
-
},
|
84
|
-
title,
|
85
|
-
editMode: false,
|
86
|
-
id: "puck-root"
|
87
|
-
});
|
88
|
-
const propsWithSlots = useSlots(config.root, props, (props2) => /* @__PURE__ */ jsx(SlotRenderPure, __spreadProps(__spreadValues({}, props2), { config, metadata })));
|
89
|
-
if ((_a = config.root) == null ? void 0 : _a.render) {
|
90
|
-
return /* @__PURE__ */ jsx(config.root.render, __spreadProps(__spreadValues({}, propsWithSlots), { children: /* @__PURE__ */ jsx(
|
91
|
-
DropZoneRender,
|
92
|
-
{
|
93
|
-
config,
|
94
|
-
data,
|
95
|
-
zone: rootZone,
|
96
|
-
metadata
|
97
|
-
}
|
98
|
-
) }));
|
99
|
-
}
|
100
|
-
return /* @__PURE__ */ jsx(
|
101
|
-
DropZoneRender,
|
102
|
-
{
|
103
|
-
config,
|
104
|
-
data,
|
105
|
-
zone: rootZone,
|
106
|
-
metadata
|
107
|
-
}
|
108
|
-
);
|
109
|
-
}
|
110
11
|
export {
|
111
12
|
Render,
|
112
13
|
resolveAllData,
|
113
|
-
transformProps
|
14
|
+
transformProps,
|
15
|
+
walkTree
|
114
16
|
};
|
@@ -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;
|
@@ -110,16 +110,17 @@ type ExternalField<Props extends {
|
|
110
110
|
filterFields?: Record<string, Field>;
|
111
111
|
initialFilters?: Record<string, any>;
|
112
112
|
};
|
113
|
-
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 & {
|
114
122
|
type: "custom";
|
115
|
-
render:
|
116
|
-
field: CustomField<Props>;
|
117
|
-
name: string;
|
118
|
-
id: string;
|
119
|
-
value: Props;
|
120
|
-
onChange: (value: Props) => void;
|
121
|
-
readOnly?: boolean;
|
122
|
-
}) => ReactElement;
|
123
|
+
render: CustomFieldRender<Value>;
|
123
124
|
};
|
124
125
|
type SlotField = BaseField & {
|
125
126
|
type: "slot";
|
@@ -146,12 +147,12 @@ type FieldProps<F = Field<any>, ValueType = any> = {
|
|
146
147
|
readOnly?: boolean;
|
147
148
|
};
|
148
149
|
|
149
|
-
type PuckComponent<Props> = (props: WithId<WithPuckProps<
|
150
|
+
type PuckComponent<Props> = (props: WithId<WithPuckProps<{
|
151
|
+
[PropName in keyof Props]: Props[PropName] extends Slot ? (props?: Omit<DropZoneProps, "zone">) => ReactNode : Props[PropName];
|
152
|
+
}>>) => JSX.Element;
|
150
153
|
type ResolveDataTrigger = "insert" | "replace" | "load" | "force";
|
151
154
|
type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponentProps, FieldProps extends DefaultComponentProps = RenderProps, DataShape = Omit<ComponentData<FieldProps>, "type">> = {
|
152
|
-
render: PuckComponent<
|
153
|
-
[PropName in keyof RenderProps]: RenderProps[PropName] extends Slot ? (props?: Omit<DropZoneProps, "zone">) => ReactNode : RenderProps[PropName];
|
154
|
-
}>;
|
155
|
+
render: PuckComponent<RenderProps>;
|
155
156
|
label?: string;
|
156
157
|
defaultProps?: FieldProps;
|
157
158
|
fields?: Fields<FieldProps>;
|
@@ -254,22 +255,28 @@ type BaseData<Props extends {
|
|
254
255
|
readOnly?: Partial<Record<keyof Props, boolean>>;
|
255
256
|
};
|
256
257
|
type RootDataWithProps<Props extends DefaultComponentProps = DefaultRootFieldProps> = BaseData<Props> & {
|
257
|
-
props: Props
|
258
|
+
props: WithPopulatedSlots<Props>;
|
258
259
|
};
|
259
260
|
type RootDataWithoutProps<Props extends DefaultComponentProps = DefaultRootFieldProps> = Props;
|
260
261
|
type RootData<Props extends DefaultComponentProps = DefaultRootFieldProps> = Partial<RootDataWithProps<AsFieldProps<Props>>> & Partial<RootDataWithoutProps<Props>>;
|
261
262
|
type ComponentData<Props extends DefaultComponentProps = DefaultComponentProps, Name = string> = {
|
262
263
|
type: Name;
|
263
|
-
props: WithId<Props
|
264
|
+
props: WithId<WithPopulatedSlots<Props>>;
|
265
|
+
} & BaseData<Props>;
|
266
|
+
type ComponentDataOptionalId<Props extends DefaultComponentProps = DefaultComponentProps, Name = string> = {
|
267
|
+
type: Name;
|
268
|
+
props: Props & {
|
269
|
+
id?: string;
|
270
|
+
};
|
264
271
|
} & BaseData<Props>;
|
265
272
|
type MappedItem = ComponentData;
|
266
273
|
type ComponentDataMap<Props extends Record<string, DefaultComponentProps> = DefaultComponentProps> = {
|
267
274
|
[K in keyof Props]: ComponentData<Props[K], K extends string ? K : never>;
|
268
275
|
}[keyof Props];
|
269
276
|
type Content<PropsMap extends {
|
270
|
-
[key: string]:
|
277
|
+
[key: string]: DefaultComponentProps;
|
271
278
|
} = {
|
272
|
-
[key: string]:
|
279
|
+
[key: string]: DefaultComponentProps;
|
273
280
|
}> = ComponentDataMap<PropsMap>[];
|
274
281
|
type Data<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends DefaultComponentProps = DefaultRootFieldProps> = {
|
275
282
|
root: RootData<RootProps>;
|
@@ -338,6 +345,9 @@ type PrivateAppState<UserData extends Data = Data> = AppState<UserData> & {
|
|
338
345
|
zones: ZoneIndex;
|
339
346
|
};
|
340
347
|
};
|
348
|
+
type WithPopulatedSlots<Props extends DefaultComponentProps = DefaultComponentProps, SlotProps extends DefaultComponentProps = Props> = Props extends any ? any : {
|
349
|
+
[PropName in keyof Props]: Props[PropName] extends Slot<SlotProps> ? Content<SlotProps> : Props[PropName];
|
350
|
+
};
|
341
351
|
|
342
352
|
type RenderFunc<Props extends {
|
343
353
|
[key: string]: any;
|
@@ -445,7 +455,13 @@ type InitialHistoryNoAppend<AS = Partial<AppState>> = {
|
|
445
455
|
appendData?: false;
|
446
456
|
};
|
447
457
|
type InitialHistory<AS = Partial<AppState>> = InitialHistoryAppend<AS> | InitialHistoryNoAppend<AS>;
|
448
|
-
type Slot
|
458
|
+
type Slot<Props extends {
|
459
|
+
[key: string]: DefaultComponentProps;
|
460
|
+
} = {
|
461
|
+
[key: string]: DefaultComponentProps;
|
462
|
+
}> = {
|
463
|
+
[K in keyof Props]: ComponentDataOptionalId<Props[K], K extends string ? K : never>;
|
464
|
+
}[keyof Props][];
|
449
465
|
|
450
466
|
type InsertAction = {
|
451
467
|
type: "insert";
|
@@ -526,4 +542,10 @@ declare function transformProps<Props extends DefaultComponentProps = DefaultCom
|
|
526
542
|
|
527
543
|
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>>;
|
528
544
|
|
529
|
-
|
545
|
+
type WalkTreeOptions = {
|
546
|
+
parentId: string;
|
547
|
+
propName: string;
|
548
|
+
};
|
549
|
+
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;
|
550
|
+
|
551
|
+
export { type ExternalField 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 RadioField as W, type ArrayField as X, type ObjectField as Y, type Adaptor as Z, type ExternalFieldWithAdaptor as _, type Config as a, type CustomFieldRender as a0, type CustomField as a1, type SlotField as a2, type PuckContext as a3, type DefaultRootFieldProps as a4, type DefaultRootRenderProps as a5, type DefaultRootProps as a6, type DefaultComponentProps as a7, type WithId as a8, type WithPuckProps as a9, type AsFieldProps as aa, type WithChildren as ab, type ExtractPropsFromConfig as ac, type ExtractRootPropsFromConfig as ad, transformProps as ae, resolveAllData as af, 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 };
|
@@ -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;
|
@@ -110,16 +110,17 @@ type ExternalField<Props extends {
|
|
110
110
|
filterFields?: Record<string, Field>;
|
111
111
|
initialFilters?: Record<string, any>;
|
112
112
|
};
|
113
|
-
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 & {
|
114
122
|
type: "custom";
|
115
|
-
render:
|
116
|
-
field: CustomField<Props>;
|
117
|
-
name: string;
|
118
|
-
id: string;
|
119
|
-
value: Props;
|
120
|
-
onChange: (value: Props) => void;
|
121
|
-
readOnly?: boolean;
|
122
|
-
}) => ReactElement;
|
123
|
+
render: CustomFieldRender<Value>;
|
123
124
|
};
|
124
125
|
type SlotField = BaseField & {
|
125
126
|
type: "slot";
|
@@ -146,12 +147,12 @@ type FieldProps<F = Field<any>, ValueType = any> = {
|
|
146
147
|
readOnly?: boolean;
|
147
148
|
};
|
148
149
|
|
149
|
-
type PuckComponent<Props> = (props: WithId<WithPuckProps<
|
150
|
+
type PuckComponent<Props> = (props: WithId<WithPuckProps<{
|
151
|
+
[PropName in keyof Props]: Props[PropName] extends Slot ? (props?: Omit<DropZoneProps, "zone">) => ReactNode : Props[PropName];
|
152
|
+
}>>) => JSX.Element;
|
150
153
|
type ResolveDataTrigger = "insert" | "replace" | "load" | "force";
|
151
154
|
type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponentProps, FieldProps extends DefaultComponentProps = RenderProps, DataShape = Omit<ComponentData<FieldProps>, "type">> = {
|
152
|
-
render: PuckComponent<
|
153
|
-
[PropName in keyof RenderProps]: RenderProps[PropName] extends Slot ? (props?: Omit<DropZoneProps, "zone">) => ReactNode : RenderProps[PropName];
|
154
|
-
}>;
|
155
|
+
render: PuckComponent<RenderProps>;
|
155
156
|
label?: string;
|
156
157
|
defaultProps?: FieldProps;
|
157
158
|
fields?: Fields<FieldProps>;
|
@@ -254,22 +255,28 @@ type BaseData<Props extends {
|
|
254
255
|
readOnly?: Partial<Record<keyof Props, boolean>>;
|
255
256
|
};
|
256
257
|
type RootDataWithProps<Props extends DefaultComponentProps = DefaultRootFieldProps> = BaseData<Props> & {
|
257
|
-
props: Props
|
258
|
+
props: WithPopulatedSlots<Props>;
|
258
259
|
};
|
259
260
|
type RootDataWithoutProps<Props extends DefaultComponentProps = DefaultRootFieldProps> = Props;
|
260
261
|
type RootData<Props extends DefaultComponentProps = DefaultRootFieldProps> = Partial<RootDataWithProps<AsFieldProps<Props>>> & Partial<RootDataWithoutProps<Props>>;
|
261
262
|
type ComponentData<Props extends DefaultComponentProps = DefaultComponentProps, Name = string> = {
|
262
263
|
type: Name;
|
263
|
-
props: WithId<Props
|
264
|
+
props: WithId<WithPopulatedSlots<Props>>;
|
265
|
+
} & BaseData<Props>;
|
266
|
+
type ComponentDataOptionalId<Props extends DefaultComponentProps = DefaultComponentProps, Name = string> = {
|
267
|
+
type: Name;
|
268
|
+
props: Props & {
|
269
|
+
id?: string;
|
270
|
+
};
|
264
271
|
} & BaseData<Props>;
|
265
272
|
type MappedItem = ComponentData;
|
266
273
|
type ComponentDataMap<Props extends Record<string, DefaultComponentProps> = DefaultComponentProps> = {
|
267
274
|
[K in keyof Props]: ComponentData<Props[K], K extends string ? K : never>;
|
268
275
|
}[keyof Props];
|
269
276
|
type Content<PropsMap extends {
|
270
|
-
[key: string]:
|
277
|
+
[key: string]: DefaultComponentProps;
|
271
278
|
} = {
|
272
|
-
[key: string]:
|
279
|
+
[key: string]: DefaultComponentProps;
|
273
280
|
}> = ComponentDataMap<PropsMap>[];
|
274
281
|
type Data<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends DefaultComponentProps = DefaultRootFieldProps> = {
|
275
282
|
root: RootData<RootProps>;
|
@@ -338,6 +345,9 @@ type PrivateAppState<UserData extends Data = Data> = AppState<UserData> & {
|
|
338
345
|
zones: ZoneIndex;
|
339
346
|
};
|
340
347
|
};
|
348
|
+
type WithPopulatedSlots<Props extends DefaultComponentProps = DefaultComponentProps, SlotProps extends DefaultComponentProps = Props> = Props extends any ? any : {
|
349
|
+
[PropName in keyof Props]: Props[PropName] extends Slot<SlotProps> ? Content<SlotProps> : Props[PropName];
|
350
|
+
};
|
341
351
|
|
342
352
|
type RenderFunc<Props extends {
|
343
353
|
[key: string]: any;
|
@@ -445,7 +455,13 @@ type InitialHistoryNoAppend<AS = Partial<AppState>> = {
|
|
445
455
|
appendData?: false;
|
446
456
|
};
|
447
457
|
type InitialHistory<AS = Partial<AppState>> = InitialHistoryAppend<AS> | InitialHistoryNoAppend<AS>;
|
448
|
-
type Slot
|
458
|
+
type Slot<Props extends {
|
459
|
+
[key: string]: DefaultComponentProps;
|
460
|
+
} = {
|
461
|
+
[key: string]: DefaultComponentProps;
|
462
|
+
}> = {
|
463
|
+
[K in keyof Props]: ComponentDataOptionalId<Props[K], K extends string ? K : never>;
|
464
|
+
}[keyof Props][];
|
449
465
|
|
450
466
|
type InsertAction = {
|
451
467
|
type: "insert";
|
@@ -526,4 +542,10 @@ declare function transformProps<Props extends DefaultComponentProps = DefaultCom
|
|
526
542
|
|
527
543
|
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>>;
|
528
544
|
|
529
|
-
|
545
|
+
type WalkTreeOptions = {
|
546
|
+
parentId: string;
|
547
|
+
propName: string;
|
548
|
+
};
|
549
|
+
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;
|
550
|
+
|
551
|
+
export { type ExternalField 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 RadioField as W, type ArrayField as X, type ObjectField as Y, type Adaptor as Z, type ExternalFieldWithAdaptor as _, type Config as a, type CustomFieldRender as a0, type CustomField as a1, type SlotField as a2, type PuckContext as a3, type DefaultRootFieldProps as a4, type DefaultRootRenderProps as a5, type DefaultRootProps as a6, type DefaultComponentProps as a7, type WithId as a8, type WithPuckProps as a9, type AsFieldProps as aa, type WithChildren as ab, type ExtractPropsFromConfig as ac, type ExtractRootPropsFromConfig as ad, transformProps as ae, resolveAllData as af, 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 };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck",
|
3
|
-
"version": "0.19.0-canary.
|
3
|
+
"version": "0.19.0-canary.eda38b34",
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
5
5
|
"repository": "measuredco/puck",
|
6
6
|
"bugs": "https://github.com/measuredco/puck/issues",
|
@@ -49,6 +49,8 @@
|
|
49
49
|
"dist"
|
50
50
|
],
|
51
51
|
"devDependencies": {
|
52
|
+
"@dnd-kit/helpers": "^0.1.12",
|
53
|
+
"@dnd-kit/react": "^0.1.12",
|
52
54
|
"@testing-library/react": "^16.1.0",
|
53
55
|
"@types/deep-diff": "^1.0.3",
|
54
56
|
"@types/jest": "^29.5.4",
|
@@ -69,8 +71,6 @@
|
|
69
71
|
"typescript": "^5.5.4"
|
70
72
|
},
|
71
73
|
"dependencies": {
|
72
|
-
"@dnd-kit/helpers": "0.0.7-beta-20250130032138",
|
73
|
-
"@dnd-kit/react": "0.0.7-beta-20250130032138",
|
74
74
|
"deep-diff": "^1.0.2",
|
75
75
|
"fast-deep-equal": "^3.1.3",
|
76
76
|
"object-hash": "^3.0.0",
|
@@ -80,6 +80,8 @@
|
|
80
80
|
"zustand": "^5.0.3"
|
81
81
|
},
|
82
82
|
"peerDependencies": {
|
83
|
+
"@dnd-kit/helpers": "^0.1.12",
|
84
|
+
"@dnd-kit/react": "0.1.12",
|
83
85
|
"react": "^18.0.0 || ^19.0.0"
|
84
86
|
}
|
85
87
|
}
|