@measured/puck 0.21.0-canary.6dae6cb7 → 0.21.0-canary.8db6528d
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-NBNCSA43.mjs → chunk-6B7427RN.mjs} +2673 -1973
- package/dist/{chunk-OOLYDXKW.mjs → chunk-Z3QSQFNS.mjs} +32 -25
- package/dist/index.css +650 -272
- package/dist/index.d.mts +15 -4
- package/dist/index.d.ts +15 -4
- package/dist/index.js +2245 -1545
- package/dist/index.mjs +8 -2
- package/dist/no-external.css +650 -272
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +2245 -1545
- package/dist/no-external.mjs +8 -2
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +32 -25
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-Ctf3FZQI.d.mts → walk-tree-Cvtjzg9C.d.mts} +21 -8
- package/dist/{walk-tree-Ctf3FZQI.d.ts → walk-tree-Cvtjzg9C.d.ts} +21 -8
- package/package.json +2 -2
package/dist/no-external.mjs
CHANGED
|
@@ -11,21 +11,24 @@ import {
|
|
|
11
11
|
Label,
|
|
12
12
|
Puck,
|
|
13
13
|
Render,
|
|
14
|
+
blocksPlugin,
|
|
14
15
|
createUsePuck,
|
|
16
|
+
fieldsPlugin,
|
|
17
|
+
outlinePlugin,
|
|
15
18
|
overrideKeys,
|
|
16
19
|
registerOverlayPortal,
|
|
17
20
|
renderContext,
|
|
18
21
|
setDeep,
|
|
19
22
|
useGetPuck,
|
|
20
23
|
usePuck
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6B7427RN.mjs";
|
|
22
25
|
import {
|
|
23
26
|
init_react_import,
|
|
24
27
|
migrate,
|
|
25
28
|
resolveAllData,
|
|
26
29
|
transformProps,
|
|
27
30
|
walkTree
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Z3QSQFNS.mjs";
|
|
29
32
|
|
|
30
33
|
// bundle/no-external.ts
|
|
31
34
|
init_react_import();
|
|
@@ -42,8 +45,11 @@ export {
|
|
|
42
45
|
Label,
|
|
43
46
|
Puck,
|
|
44
47
|
Render,
|
|
48
|
+
blocksPlugin,
|
|
45
49
|
createUsePuck,
|
|
50
|
+
fieldsPlugin,
|
|
46
51
|
migrate,
|
|
52
|
+
outlinePlugin,
|
|
47
53
|
overrideKeys,
|
|
48
54
|
registerOverlayPortal,
|
|
49
55
|
renderContext,
|
package/dist/rsc.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-Cvtjzg9C.mjs';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Cvtjzg9C.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
|
package/dist/rsc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-Cvtjzg9C.js';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Cvtjzg9C.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
|
package/dist/rsc.js
CHANGED
|
@@ -130,27 +130,32 @@ var walkField = ({
|
|
|
130
130
|
config,
|
|
131
131
|
recurseSlots = false
|
|
132
132
|
}) => {
|
|
133
|
-
var _a, _b, _c;
|
|
133
|
+
var _a, _b, _c, _d;
|
|
134
134
|
const fieldType = (_a = fields[propKey]) == null ? void 0 : _a.type;
|
|
135
135
|
const map = mappers[fieldType];
|
|
136
136
|
if (map && fieldType === "slot") {
|
|
137
137
|
const content = value || [];
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
let mappedContent = content;
|
|
139
|
+
if (recurseSlots) {
|
|
140
|
+
for (let i = 0; i < content.length; i++) {
|
|
141
|
+
const el = content[i];
|
|
142
|
+
const componentConfig = config.components[el.type];
|
|
143
|
+
if (!componentConfig || !el.props) {
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
const fields2 = (_b = componentConfig.fields) != null ? _b : {};
|
|
147
|
+
mappedContent.push(
|
|
148
|
+
walkField({
|
|
149
|
+
value: __spreadProps(__spreadValues({}, el), { props: defaultSlots(el.props, fields2) }),
|
|
150
|
+
fields: fields2,
|
|
151
|
+
mappers,
|
|
152
|
+
id: el.props.id,
|
|
153
|
+
config,
|
|
154
|
+
recurseSlots
|
|
155
|
+
})
|
|
156
|
+
);
|
|
143
157
|
}
|
|
144
|
-
|
|
145
|
-
return walkField({
|
|
146
|
-
value: __spreadProps(__spreadValues({}, el), { props: defaultSlots(el.props, fields2) }),
|
|
147
|
-
fields: fields2,
|
|
148
|
-
mappers,
|
|
149
|
-
id: el.props.id,
|
|
150
|
-
config,
|
|
151
|
-
recurseSlots
|
|
152
|
-
});
|
|
153
|
-
}) : content;
|
|
158
|
+
}
|
|
154
159
|
if (containsPromise(mappedContent)) {
|
|
155
160
|
return Promise.all(mappedContent);
|
|
156
161
|
}
|
|
@@ -172,7 +177,7 @@ var walkField = ({
|
|
|
172
177
|
}
|
|
173
178
|
if (value && typeof value === "object") {
|
|
174
179
|
if (Array.isArray(value)) {
|
|
175
|
-
const arrayFields = ((
|
|
180
|
+
const arrayFields = ((_c = fields[propKey]) == null ? void 0 : _c.type) === "array" ? fields[propKey].arrayFields : null;
|
|
176
181
|
if (!arrayFields) return value;
|
|
177
182
|
const newValue = value.map(
|
|
178
183
|
(el, idx) => walkField({
|
|
@@ -193,7 +198,7 @@ var walkField = ({
|
|
|
193
198
|
} else if ("$$typeof" in value) {
|
|
194
199
|
return value;
|
|
195
200
|
} else {
|
|
196
|
-
const objectFields = ((
|
|
201
|
+
const objectFields = ((_d = fields[propKey]) == null ? void 0 : _d.type) === "object" ? fields[propKey].objectFields : fields;
|
|
197
202
|
return walkObject({
|
|
198
203
|
value,
|
|
199
204
|
fields: objectFields,
|
|
@@ -460,19 +465,19 @@ function Render({
|
|
|
460
465
|
}
|
|
461
466
|
|
|
462
467
|
// lib/get-changed.ts
|
|
463
|
-
var
|
|
468
|
+
var import_fast_equals = require("fast-equals");
|
|
464
469
|
var getChanged = (newItem, oldItem) => {
|
|
465
470
|
return newItem ? Object.keys(newItem.props || {}).reduce((acc, item) => {
|
|
466
471
|
const newItemProps = (newItem == null ? void 0 : newItem.props) || {};
|
|
467
472
|
const oldItemProps = (oldItem == null ? void 0 : oldItem.props) || {};
|
|
468
473
|
return __spreadProps(__spreadValues({}, acc), {
|
|
469
|
-
[item]: !(0,
|
|
474
|
+
[item]: !(0, import_fast_equals.deepEqual)(oldItemProps[item], newItemProps[item])
|
|
470
475
|
});
|
|
471
476
|
}, {}) : {};
|
|
472
477
|
};
|
|
473
478
|
|
|
474
479
|
// lib/resolve-component-data.ts
|
|
475
|
-
var
|
|
480
|
+
var import_fast_equals2 = require("fast-equals");
|
|
476
481
|
var cache = { lastChange: {} };
|
|
477
482
|
var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
|
|
478
483
|
const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
|
|
@@ -481,7 +486,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
|
|
|
481
486
|
const id = "id" in item.props ? item.props.id : "root";
|
|
482
487
|
if (shouldRunResolver) {
|
|
483
488
|
const { item: oldItem = null, resolved = {} } = cache.lastChange[id] || {};
|
|
484
|
-
if (trigger !== "force" && item && (0,
|
|
489
|
+
if (trigger !== "force" && item && (0, import_fast_equals2.deepEqual)(item, oldItem)) {
|
|
485
490
|
return { node: resolved, didChange: false };
|
|
486
491
|
}
|
|
487
492
|
const changed = getChanged(item, oldItem);
|
|
@@ -531,7 +536,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
|
|
|
531
536
|
};
|
|
532
537
|
return {
|
|
533
538
|
node: itemWithResolvedChildren,
|
|
534
|
-
didChange: !(0,
|
|
539
|
+
didChange: !(0, import_fast_equals2.deepEqual)(item, itemWithResolvedChildren)
|
|
535
540
|
};
|
|
536
541
|
});
|
|
537
542
|
|
|
@@ -671,7 +676,8 @@ function transformProps(data, propTransforms, config = { components: {} }) {
|
|
|
671
676
|
var defaultViewports = [
|
|
672
677
|
{ width: 360, height: "auto", icon: "Smartphone", label: "Small" },
|
|
673
678
|
{ width: 768, height: "auto", icon: "Tablet", label: "Medium" },
|
|
674
|
-
{ width: 1280, height: "auto", icon: "Monitor", label: "Large" }
|
|
679
|
+
{ width: 1280, height: "auto", icon: "Monitor", label: "Large" },
|
|
680
|
+
{ width: "100%", height: "auto", icon: "FullWidth", label: "Full-width" }
|
|
675
681
|
];
|
|
676
682
|
|
|
677
683
|
// store/default-app-state.ts
|
|
@@ -693,7 +699,8 @@ var defaultAppState = {
|
|
|
693
699
|
options: [],
|
|
694
700
|
controlsVisible: true
|
|
695
701
|
},
|
|
696
|
-
field: { focus: null }
|
|
702
|
+
field: { focus: null },
|
|
703
|
+
plugin: { current: null }
|
|
697
704
|
},
|
|
698
705
|
indexes: {
|
|
699
706
|
nodes: {},
|
package/dist/rsc.mjs
CHANGED
|
@@ -309,6 +309,7 @@ type Metadata = {
|
|
|
309
309
|
type ItemWithId = {
|
|
310
310
|
_arrayId: string;
|
|
311
311
|
_originalIndex: number;
|
|
312
|
+
_currentIndex: number;
|
|
312
313
|
};
|
|
313
314
|
type ArrayState = {
|
|
314
315
|
items: ItemWithId[];
|
|
@@ -319,6 +320,7 @@ type UiState = {
|
|
|
319
320
|
rightSideBarVisible: boolean;
|
|
320
321
|
leftSideBarWidth?: number | null;
|
|
321
322
|
rightSideBarWidth?: number | null;
|
|
323
|
+
mobilePanelExpanded?: boolean;
|
|
322
324
|
itemSelector: ItemSelector | null;
|
|
323
325
|
arrayState: Record<string, ArrayState | undefined>;
|
|
324
326
|
previewMode: "interactive" | "edit";
|
|
@@ -331,7 +333,7 @@ type UiState = {
|
|
|
331
333
|
isDragging: boolean;
|
|
332
334
|
viewports: {
|
|
333
335
|
current: {
|
|
334
|
-
width: number;
|
|
336
|
+
width: number | "100%";
|
|
335
337
|
height: number | "auto";
|
|
336
338
|
};
|
|
337
339
|
controlsVisible: boolean;
|
|
@@ -340,6 +342,9 @@ type UiState = {
|
|
|
340
342
|
field: {
|
|
341
343
|
focus?: string | null;
|
|
342
344
|
};
|
|
345
|
+
plugin: {
|
|
346
|
+
current: string | null;
|
|
347
|
+
};
|
|
343
348
|
};
|
|
344
349
|
type AppState<UserData extends Data = Data> = {
|
|
345
350
|
data: UserData;
|
|
@@ -393,6 +398,14 @@ type LeftOrExactRight<Union, Left, Right> = (Left & Union extends Right ? Exact<
|
|
|
393
398
|
type AssertHasValue<T, True = T, False = never> = [keyof T] extends [
|
|
394
399
|
never
|
|
395
400
|
] ? False : True;
|
|
401
|
+
type RenderFunc<Props extends {
|
|
402
|
+
[key: string]: any;
|
|
403
|
+
} = {
|
|
404
|
+
children: ReactNode;
|
|
405
|
+
}> = (props: Props) => ReactElement;
|
|
406
|
+
type PluginInternal = Plugin & {
|
|
407
|
+
mobileOnly?: boolean;
|
|
408
|
+
};
|
|
396
409
|
|
|
397
410
|
type MapFnParams<ThisField = Field> = {
|
|
398
411
|
value: any;
|
|
@@ -416,11 +429,6 @@ G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>, UserField extends
|
|
|
416
429
|
[Type in UserField["type"]]: FieldTransformFn<ExtractField<UserField, Type>>;
|
|
417
430
|
}>;
|
|
418
431
|
|
|
419
|
-
type RenderFunc<Props extends {
|
|
420
|
-
[key: string]: any;
|
|
421
|
-
} = {
|
|
422
|
-
children: ReactNode;
|
|
423
|
-
}> = (props: Props) => ReactElement;
|
|
424
432
|
declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
|
|
425
433
|
type OverrideKey = (typeof overrideKeys)[number];
|
|
426
434
|
type OverridesGeneric<Shape extends {
|
|
@@ -492,7 +500,7 @@ type DragAxis = "dynamic" | "y" | "x";
|
|
|
492
500
|
|
|
493
501
|
type iconTypes = "Smartphone" | "Monitor" | "Tablet";
|
|
494
502
|
type Viewport = {
|
|
495
|
-
width: number;
|
|
503
|
+
width: number | "100%";
|
|
496
504
|
height?: number | "auto";
|
|
497
505
|
label?: string;
|
|
498
506
|
icon?: iconTypes | ReactNode;
|
|
@@ -512,8 +520,13 @@ type IframeConfig = {
|
|
|
512
520
|
};
|
|
513
521
|
type OnAction<UserData extends Data = Data> = (action: PuckAction, appState: AppState<UserData>, prevAppState: AppState<UserData>) => void;
|
|
514
522
|
type Plugin<UserConfig extends Config = Config> = {
|
|
523
|
+
name?: string;
|
|
524
|
+
label?: string;
|
|
525
|
+
icon?: ReactNode;
|
|
526
|
+
render?: () => ReactElement;
|
|
515
527
|
overrides?: Partial<Overrides<UserConfig>>;
|
|
516
528
|
fieldTransforms?: FieldTransforms<UserConfig>;
|
|
529
|
+
mobilePanelHeight?: "toggle" | "min-content";
|
|
517
530
|
};
|
|
518
531
|
type History<D = any> = {
|
|
519
532
|
state: D;
|
|
@@ -631,4 +644,4 @@ type WalkTreeOptions = {
|
|
|
631
644
|
};
|
|
632
645
|
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;
|
|
633
646
|
|
|
634
|
-
export { type
|
|
647
|
+
export { type Content as $, type AppState as A, type ItemWithId as B, type Config as C, type DropZoneProps as D, type ArrayState as E, type Fields as F, type SlotComponent as G, type History as H, type IframeConfig as I, type PuckComponent as J, type RootConfig as K, type DefaultComponents as L, type Metadata as M, type ExtractConfigParams as N, type Overrides as O, type Permissions as P, type BaseData as Q, type RootDataWithProps as R, type Slot as S, type RootDataWithoutProps as T, type UserGenerics as U, type Viewports as V, type WithSlotProps as W, type RootData as X, type ComponentDataOptionalId as Y, type MappedItem as Z, type ComponentDataMap as _, type ComponentData as a, type BaseField as a0, type TextField as a1, type NumberField as a2, type TextareaField as a3, type SelectField as a4, type RadioField as a5, type ArrayField as a6, type ObjectField as a7, type Adaptor as a8, type ExternalFieldWithAdaptor as a9, type ExternalField as aa, type CustomFieldRender as ab, type CustomField as ac, type SlotField as ad, type PuckContext as ae, type DefaultRootFieldProps as af, type DefaultRootRenderProps as ag, type DefaultRootProps as ah, type DefaultComponentProps as ai, type WithId as aj, type WithPuckProps as ak, type AsFieldProps as al, type WithChildren as am, type ExtractField as an, type PuckAction as b, type ResolveDataTrigger as c, type Plugin as d, type UiState as e, type ComponentConfig as f, type FieldTransforms as g, type Field as h, type FieldProps as i, type Data as j, type OnAction as k, type InitialHistory as l, migrate as m, type ItemSelector as n, type PluginInternal as o, type Direction as p, type DragAxis as q, resolveAllData as r, type Viewport as s, transformProps as t, type FieldTransformFnParams as u, type FieldTransformFn as v, walkTree as w, overrideKeys as x, type OverrideKey as y, type FieldRenderFunctions as z };
|
|
@@ -309,6 +309,7 @@ type Metadata = {
|
|
|
309
309
|
type ItemWithId = {
|
|
310
310
|
_arrayId: string;
|
|
311
311
|
_originalIndex: number;
|
|
312
|
+
_currentIndex: number;
|
|
312
313
|
};
|
|
313
314
|
type ArrayState = {
|
|
314
315
|
items: ItemWithId[];
|
|
@@ -319,6 +320,7 @@ type UiState = {
|
|
|
319
320
|
rightSideBarVisible: boolean;
|
|
320
321
|
leftSideBarWidth?: number | null;
|
|
321
322
|
rightSideBarWidth?: number | null;
|
|
323
|
+
mobilePanelExpanded?: boolean;
|
|
322
324
|
itemSelector: ItemSelector | null;
|
|
323
325
|
arrayState: Record<string, ArrayState | undefined>;
|
|
324
326
|
previewMode: "interactive" | "edit";
|
|
@@ -331,7 +333,7 @@ type UiState = {
|
|
|
331
333
|
isDragging: boolean;
|
|
332
334
|
viewports: {
|
|
333
335
|
current: {
|
|
334
|
-
width: number;
|
|
336
|
+
width: number | "100%";
|
|
335
337
|
height: number | "auto";
|
|
336
338
|
};
|
|
337
339
|
controlsVisible: boolean;
|
|
@@ -340,6 +342,9 @@ type UiState = {
|
|
|
340
342
|
field: {
|
|
341
343
|
focus?: string | null;
|
|
342
344
|
};
|
|
345
|
+
plugin: {
|
|
346
|
+
current: string | null;
|
|
347
|
+
};
|
|
343
348
|
};
|
|
344
349
|
type AppState<UserData extends Data = Data> = {
|
|
345
350
|
data: UserData;
|
|
@@ -393,6 +398,14 @@ type LeftOrExactRight<Union, Left, Right> = (Left & Union extends Right ? Exact<
|
|
|
393
398
|
type AssertHasValue<T, True = T, False = never> = [keyof T] extends [
|
|
394
399
|
never
|
|
395
400
|
] ? False : True;
|
|
401
|
+
type RenderFunc<Props extends {
|
|
402
|
+
[key: string]: any;
|
|
403
|
+
} = {
|
|
404
|
+
children: ReactNode;
|
|
405
|
+
}> = (props: Props) => ReactElement;
|
|
406
|
+
type PluginInternal = Plugin & {
|
|
407
|
+
mobileOnly?: boolean;
|
|
408
|
+
};
|
|
396
409
|
|
|
397
410
|
type MapFnParams<ThisField = Field> = {
|
|
398
411
|
value: any;
|
|
@@ -416,11 +429,6 @@ G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>, UserField extends
|
|
|
416
429
|
[Type in UserField["type"]]: FieldTransformFn<ExtractField<UserField, Type>>;
|
|
417
430
|
}>;
|
|
418
431
|
|
|
419
|
-
type RenderFunc<Props extends {
|
|
420
|
-
[key: string]: any;
|
|
421
|
-
} = {
|
|
422
|
-
children: ReactNode;
|
|
423
|
-
}> = (props: Props) => ReactElement;
|
|
424
432
|
declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
|
|
425
433
|
type OverrideKey = (typeof overrideKeys)[number];
|
|
426
434
|
type OverridesGeneric<Shape extends {
|
|
@@ -492,7 +500,7 @@ type DragAxis = "dynamic" | "y" | "x";
|
|
|
492
500
|
|
|
493
501
|
type iconTypes = "Smartphone" | "Monitor" | "Tablet";
|
|
494
502
|
type Viewport = {
|
|
495
|
-
width: number;
|
|
503
|
+
width: number | "100%";
|
|
496
504
|
height?: number | "auto";
|
|
497
505
|
label?: string;
|
|
498
506
|
icon?: iconTypes | ReactNode;
|
|
@@ -512,8 +520,13 @@ type IframeConfig = {
|
|
|
512
520
|
};
|
|
513
521
|
type OnAction<UserData extends Data = Data> = (action: PuckAction, appState: AppState<UserData>, prevAppState: AppState<UserData>) => void;
|
|
514
522
|
type Plugin<UserConfig extends Config = Config> = {
|
|
523
|
+
name?: string;
|
|
524
|
+
label?: string;
|
|
525
|
+
icon?: ReactNode;
|
|
526
|
+
render?: () => ReactElement;
|
|
515
527
|
overrides?: Partial<Overrides<UserConfig>>;
|
|
516
528
|
fieldTransforms?: FieldTransforms<UserConfig>;
|
|
529
|
+
mobilePanelHeight?: "toggle" | "min-content";
|
|
517
530
|
};
|
|
518
531
|
type History<D = any> = {
|
|
519
532
|
state: D;
|
|
@@ -631,4 +644,4 @@ type WalkTreeOptions = {
|
|
|
631
644
|
};
|
|
632
645
|
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;
|
|
633
646
|
|
|
634
|
-
export { type
|
|
647
|
+
export { type Content as $, type AppState as A, type ItemWithId as B, type Config as C, type DropZoneProps as D, type ArrayState as E, type Fields as F, type SlotComponent as G, type History as H, type IframeConfig as I, type PuckComponent as J, type RootConfig as K, type DefaultComponents as L, type Metadata as M, type ExtractConfigParams as N, type Overrides as O, type Permissions as P, type BaseData as Q, type RootDataWithProps as R, type Slot as S, type RootDataWithoutProps as T, type UserGenerics as U, type Viewports as V, type WithSlotProps as W, type RootData as X, type ComponentDataOptionalId as Y, type MappedItem as Z, type ComponentDataMap as _, type ComponentData as a, type BaseField as a0, type TextField as a1, type NumberField as a2, type TextareaField as a3, type SelectField as a4, type RadioField as a5, type ArrayField as a6, type ObjectField as a7, type Adaptor as a8, type ExternalFieldWithAdaptor as a9, type ExternalField as aa, type CustomFieldRender as ab, type CustomField as ac, type SlotField as ad, type PuckContext as ae, type DefaultRootFieldProps as af, type DefaultRootRenderProps as ag, type DefaultRootProps as ah, type DefaultComponentProps as ai, type WithId as aj, type WithPuckProps as ak, type AsFieldProps as al, type WithChildren as am, type ExtractField as an, type PuckAction as b, type ResolveDataTrigger as c, type Plugin as d, type UiState as e, type ComponentConfig as f, type FieldTransforms as g, type Field as h, type FieldProps as i, type Data as j, type OnAction as k, type InitialHistory as l, migrate as m, type ItemSelector as n, type PluginInternal as o, type Direction as p, type DragAxis as q, resolveAllData as r, type Viewport as s, transformProps as t, type FieldTransformFnParams as u, type FieldTransformFn as v, walkTree as w, overrideKeys as x, type OverrideKey as y, type FieldRenderFunctions as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@measured/puck",
|
|
3
|
-
"version": "0.21.0-canary.
|
|
3
|
+
"version": "0.21.0-canary.8db6528d",
|
|
4
4
|
"description": "The open-source visual editor for React",
|
|
5
5
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
6
6
|
"repository": "measuredco/puck",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@dnd-kit/helpers": "0.1.18",
|
|
97
97
|
"@dnd-kit/react": "0.1.18",
|
|
98
98
|
"deep-diff": "^1.0.2",
|
|
99
|
-
"fast-
|
|
99
|
+
"fast-equals": "5.2.2",
|
|
100
100
|
"flat": "^5.0.2",
|
|
101
101
|
"object-hash": "^3.0.0",
|
|
102
102
|
"react-hotkeys-hook": "^4.6.1",
|