@measured/puck 0.20.0-canary.ba585f93 → 0.20.0-canary.c119ed0d

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.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as History, P as Permissions, C as ComponentData, a as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-BDO40vbf.mjs';
2
- export { $ as Adaptor, Z as ArrayField, t as ArrayState, ac as AsFieldProps, B as BaseData, L as BaseField, J as ComponentDataMap, E as ComponentDataOptionalId, K as Content, a3 as CustomField, a2 as CustomFieldRender, a9 as DefaultComponentProps, a6 as DefaultRootFieldProps, a8 as DefaultRootProps, a7 as DefaultRootRenderProps, m as Direction, n as DragAxis, a1 as ExternalField, a0 as ExternalFieldWithAdaptor, ae as ExtractPropsFromConfig, af as ExtractRootPropsFromConfig, r as FieldRenderFunctions, s as ItemWithId, G as MappedItem, N as NumberField, _ as ObjectField, q as OverrideKey, v as PuckComponent, a5 as PuckContext, Y as RadioField, x as RootConfig, z as RootData, y as RootDataWithoutProps, X as SelectField, S as Slot, u as SlotComponent, a4 as SlotField, T as TextField, Q as TextareaField, o as Viewport, ad as WithChildren, aa as WithId, ab as WithPuckProps, W as WithSlotProps, ag as migrate, p as overrideKeys, ai as resolveAllData, ah as transformProps, w as walkTree } from './walk-tree-BDO40vbf.mjs';
1
+ import { H as History, P as Permissions, C as ComponentData, a as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-BOSl1o0G.mjs';
2
+ export { _ as Adaptor, Y as ArrayField, t as ArrayState, ab as AsFieldProps, B as BaseData, K as BaseField, G as ComponentDataMap, z as ComponentDataOptionalId, J as Content, a2 as CustomField, a1 as CustomFieldRender, a8 as DefaultComponentProps, a5 as DefaultRootFieldProps, a7 as DefaultRootProps, a6 as DefaultRootRenderProps, m as Direction, n as DragAxis, a0 as ExternalField, $ as ExternalFieldWithAdaptor, ad as ExtractPropsFromConfig, ae as ExtractRootPropsFromConfig, r as FieldRenderFunctions, s as ItemWithId, E as MappedItem, N as NumberField, Z as ObjectField, q as OverrideKey, u as PuckComponent, a4 as PuckContext, X as RadioField, v as RootConfig, y as RootData, x as RootDataWithoutProps, Q as SelectField, S as Slot, a3 as SlotField, T as TextField, L as TextareaField, o as Viewport, ac as WithChildren, a9 as WithId, aa as WithPuckProps, W as WithSlotProps, af as migrate, p as overrideKeys, ah as resolveAllData, ag as transformProps, w as walkTree } from './walk-tree-BOSl1o0G.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as History, P as Permissions, C as ComponentData, a as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-BDO40vbf.js';
2
- export { $ as Adaptor, Z as ArrayField, t as ArrayState, ac as AsFieldProps, B as BaseData, L as BaseField, J as ComponentDataMap, E as ComponentDataOptionalId, K as Content, a3 as CustomField, a2 as CustomFieldRender, a9 as DefaultComponentProps, a6 as DefaultRootFieldProps, a8 as DefaultRootProps, a7 as DefaultRootRenderProps, m as Direction, n as DragAxis, a1 as ExternalField, a0 as ExternalFieldWithAdaptor, ae as ExtractPropsFromConfig, af as ExtractRootPropsFromConfig, r as FieldRenderFunctions, s as ItemWithId, G as MappedItem, N as NumberField, _ as ObjectField, q as OverrideKey, v as PuckComponent, a5 as PuckContext, Y as RadioField, x as RootConfig, z as RootData, y as RootDataWithoutProps, X as SelectField, S as Slot, u as SlotComponent, a4 as SlotField, T as TextField, Q as TextareaField, o as Viewport, ad as WithChildren, aa as WithId, ab as WithPuckProps, W as WithSlotProps, ag as migrate, p as overrideKeys, ai as resolveAllData, ah as transformProps, w as walkTree } from './walk-tree-BDO40vbf.js';
1
+ import { H as History, P as Permissions, C as ComponentData, a as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-BOSl1o0G.js';
2
+ export { _ as Adaptor, Y as ArrayField, t as ArrayState, ab as AsFieldProps, B as BaseData, K as BaseField, G as ComponentDataMap, z as ComponentDataOptionalId, J as Content, a2 as CustomField, a1 as CustomFieldRender, a8 as DefaultComponentProps, a5 as DefaultRootFieldProps, a7 as DefaultRootProps, a6 as DefaultRootRenderProps, m as Direction, n as DragAxis, a0 as ExternalField, $ as ExternalFieldWithAdaptor, ad as ExtractPropsFromConfig, ae as ExtractRootPropsFromConfig, r as FieldRenderFunctions, s as ItemWithId, E as MappedItem, N as NumberField, Z as ObjectField, q as OverrideKey, u as PuckComponent, a4 as PuckContext, X as RadioField, v as RootConfig, y as RootData, x as RootDataWithoutProps, Q as SelectField, S as Slot, a3 as SlotField, T as TextField, L as TextareaField, o as Viewport, ac as WithChildren, a9 as WithId, aa as WithPuckProps, W as WithSlotProps, af as migrate, p as overrideKeys, ah as resolveAllData, ag as transformProps, w as walkTree } from './walk-tree-BOSl1o0G.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
package/dist/index.js CHANGED
@@ -4699,9 +4699,19 @@ var DropZoneProvider = ({
4699
4699
  },
4700
4700
  [dispatch]
4701
4701
  );
4702
+ const unregisterZone = (0, import_react25.useCallback)(
4703
+ (zoneCompound) => {
4704
+ dispatch({
4705
+ type: "unregisterZone",
4706
+ zone: zoneCompound
4707
+ });
4708
+ },
4709
+ [dispatch]
4710
+ );
4702
4711
  const memoValue = (0, import_react25.useMemo)(
4703
4712
  () => __spreadValues({
4704
- registerZone
4713
+ registerZone,
4714
+ unregisterZone
4705
4715
  }, value),
4706
4716
  [value]
4707
4717
  );
@@ -5073,8 +5083,7 @@ var DraggableComponent = ({
5073
5083
  el.removeEventListener("mouseout", _onMouseOut);
5074
5084
  };
5075
5085
  }, [
5076
- ref.current,
5077
- // Remount attributes if the element changes
5086
+ ref,
5078
5087
  onClick,
5079
5088
  containsActiveZone,
5080
5089
  zoneCompound,
@@ -5576,8 +5585,7 @@ var DropZoneChild = ({
5576
5585
  return {
5577
5586
  type: preview.componentType,
5578
5587
  props: preview.props,
5579
- previewType: preview.type,
5580
- element: preview.element
5588
+ previewType: preview.type
5581
5589
  };
5582
5590
  }
5583
5591
  return null;
@@ -5610,12 +5618,6 @@ var DropZoneChild = ({
5610
5618
  let label = (_b = (_a = componentConfig == null ? void 0 : componentConfig.label) != null ? _a : item == null ? void 0 : item.type.toString()) != null ? _b : "Component";
5611
5619
  const renderPreview = (0, import_react35.useMemo)(
5612
5620
  () => function Preview3() {
5613
- if (item && "element" in item && item.element) {
5614
- return (
5615
- // Safe to use this since the HTML is set by the user
5616
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { dangerouslySetInnerHTML: { __html: item.element.outerHTML } })
5617
- );
5618
- }
5619
5621
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DrawerItemInner, { name: label, children: overrides.componentItem });
5620
5622
  },
5621
5623
  [componentId, label, overrides]
@@ -5691,7 +5693,6 @@ var DropZoneEdit = (0, import_react35.forwardRef)(
5691
5693
  collisionAxis
5692
5694
  }, userRef) {
5693
5695
  const ctx = (0, import_react35.useContext)(dropZoneContext);
5694
- const appStoreApi = useAppStoreApi();
5695
5696
  const {
5696
5697
  // These all need setting via context
5697
5698
  areaId,
@@ -5733,8 +5734,13 @@ var DropZoneEdit = (0, import_react35.forwardRef)(
5733
5734
  if (ctx == null ? void 0 : ctx.registerZone) {
5734
5735
  ctx == null ? void 0 : ctx.registerZone(zoneCompound);
5735
5736
  }
5737
+ return () => {
5738
+ if (ctx == null ? void 0 : ctx.unregisterZone) {
5739
+ ctx == null ? void 0 : ctx.unregisterZone(zoneCompound);
5740
+ }
5741
+ };
5736
5742
  }
5737
- }, [zoneType, appStoreApi]);
5743
+ }, [zoneType]);
5738
5744
  (0, import_react35.useEffect)(() => {
5739
5745
  if (zoneType === "dropzone") {
5740
5746
  if (zoneCompound !== rootDroppableId) {
@@ -5906,6 +5912,11 @@ var DropZoneRender2 = (0, import_react35.forwardRef)(
5906
5912
  if (ctx == null ? void 0 : ctx.registerZone) {
5907
5913
  ctx == null ? void 0 : ctx.registerZone(zoneCompound);
5908
5914
  }
5915
+ return () => {
5916
+ if (ctx == null ? void 0 : ctx.unregisterZone) {
5917
+ ctx == null ? void 0 : ctx.unregisterZone(zoneCompound);
5918
+ }
5919
+ };
5909
5920
  }
5910
5921
  }, [content]);
5911
5922
  if (!data || !config) {
@@ -6571,7 +6582,6 @@ var DragDropContextClient = ({
6571
6582
  type: "insert",
6572
6583
  index: targetIndex,
6573
6584
  zone: targetZone,
6574
- element: source.element,
6575
6585
  props: {
6576
6586
  id: source.id.toString()
6577
6587
  }
@@ -6597,8 +6607,7 @@ var DragDropContextClient = ({
6597
6607
  type: "move",
6598
6608
  index: targetIndex,
6599
6609
  zone: targetZone,
6600
- props: item.props,
6601
- element: source.element
6610
+ props: item.props
6602
6611
  }
6603
6612
  }
6604
6613
  });
@@ -6628,8 +6637,7 @@ var DragDropContextClient = ({
6628
6637
  type: "move",
6629
6638
  index: sourceData.index,
6630
6639
  zone: sourceData.zone,
6631
- props: item.props,
6632
- element: source.element
6640
+ props: item.props
6633
6641
  }
6634
6642
  }
6635
6643
  });
@@ -7584,7 +7592,7 @@ var Preview2 = ({ id = "puck-preview" }) => {
7584
7592
  editMode: true,
7585
7593
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DropZonePure, { zone: rootDroppableId })
7586
7594
  })
7587
- ) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Render2, { data: renderData, config, metadata });
7595
+ ) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Render2, { data: renderData, config });
7588
7596
  (0, import_react46.useEffect)(() => {
7589
7597
  if (!iframe.enabled) {
7590
7598
  setStatus("READY");
package/dist/index.mjs CHANGED
@@ -3808,9 +3808,19 @@ var DropZoneProvider = ({
3808
3808
  },
3809
3809
  [dispatch]
3810
3810
  );
3811
+ const unregisterZone = useCallback5(
3812
+ (zoneCompound) => {
3813
+ dispatch({
3814
+ type: "unregisterZone",
3815
+ zone: zoneCompound
3816
+ });
3817
+ },
3818
+ [dispatch]
3819
+ );
3811
3820
  const memoValue = useMemo6(
3812
3821
  () => __spreadValues({
3813
- registerZone
3822
+ registerZone,
3823
+ unregisterZone
3814
3824
  }, value),
3815
3825
  [value]
3816
3826
  );
@@ -4182,8 +4192,7 @@ var DraggableComponent = ({
4182
4192
  el.removeEventListener("mouseout", _onMouseOut);
4183
4193
  };
4184
4194
  }, [
4185
- ref.current,
4186
- // Remount attributes if the element changes
4195
+ ref,
4187
4196
  onClick,
4188
4197
  containsActiveZone,
4189
4198
  zoneCompound,
@@ -4685,8 +4694,7 @@ var DropZoneChild = ({
4685
4694
  return {
4686
4695
  type: preview.componentType,
4687
4696
  props: preview.props,
4688
- previewType: preview.type,
4689
- element: preview.element
4697
+ previewType: preview.type
4690
4698
  };
4691
4699
  }
4692
4700
  return null;
@@ -4719,12 +4727,6 @@ var DropZoneChild = ({
4719
4727
  let label = (_b = (_a = componentConfig == null ? void 0 : componentConfig.label) != null ? _a : item == null ? void 0 : item.type.toString()) != null ? _b : "Component";
4720
4728
  const renderPreview = useMemo9(
4721
4729
  () => function Preview3() {
4722
- if (item && "element" in item && item.element) {
4723
- return (
4724
- // Safe to use this since the HTML is set by the user
4725
- /* @__PURE__ */ jsx23("div", { dangerouslySetInnerHTML: { __html: item.element.outerHTML } })
4726
- );
4727
- }
4728
4730
  return /* @__PURE__ */ jsx23(DrawerItemInner, { name: label, children: overrides.componentItem });
4729
4731
  },
4730
4732
  [componentId, label, overrides]
@@ -4800,7 +4802,6 @@ var DropZoneEdit = forwardRef3(
4800
4802
  collisionAxis
4801
4803
  }, userRef) {
4802
4804
  const ctx = useContext7(dropZoneContext);
4803
- const appStoreApi = useAppStoreApi();
4804
4805
  const {
4805
4806
  // These all need setting via context
4806
4807
  areaId,
@@ -4842,8 +4843,13 @@ var DropZoneEdit = forwardRef3(
4842
4843
  if (ctx == null ? void 0 : ctx.registerZone) {
4843
4844
  ctx == null ? void 0 : ctx.registerZone(zoneCompound);
4844
4845
  }
4846
+ return () => {
4847
+ if (ctx == null ? void 0 : ctx.unregisterZone) {
4848
+ ctx == null ? void 0 : ctx.unregisterZone(zoneCompound);
4849
+ }
4850
+ };
4845
4851
  }
4846
- }, [zoneType, appStoreApi]);
4852
+ }, [zoneType]);
4847
4853
  useEffect16(() => {
4848
4854
  if (zoneType === "dropzone") {
4849
4855
  if (zoneCompound !== rootDroppableId) {
@@ -5015,6 +5021,11 @@ var DropZoneRender = forwardRef3(
5015
5021
  if (ctx == null ? void 0 : ctx.registerZone) {
5016
5022
  ctx == null ? void 0 : ctx.registerZone(zoneCompound);
5017
5023
  }
5024
+ return () => {
5025
+ if (ctx == null ? void 0 : ctx.unregisterZone) {
5026
+ ctx == null ? void 0 : ctx.unregisterZone(zoneCompound);
5027
+ }
5028
+ };
5018
5029
  }
5019
5030
  }, [content]);
5020
5031
  if (!data || !config) {
@@ -5680,7 +5691,6 @@ var DragDropContextClient = ({
5680
5691
  type: "insert",
5681
5692
  index: targetIndex,
5682
5693
  zone: targetZone,
5683
- element: source.element,
5684
5694
  props: {
5685
5695
  id: source.id.toString()
5686
5696
  }
@@ -5706,8 +5716,7 @@ var DragDropContextClient = ({
5706
5716
  type: "move",
5707
5717
  index: targetIndex,
5708
5718
  zone: targetZone,
5709
- props: item.props,
5710
- element: source.element
5719
+ props: item.props
5711
5720
  }
5712
5721
  }
5713
5722
  });
@@ -5737,8 +5746,7 @@ var DragDropContextClient = ({
5737
5746
  type: "move",
5738
5747
  index: sourceData.index,
5739
5748
  zone: sourceData.zone,
5740
- props: item.props,
5741
- element: source.element
5749
+ props: item.props
5742
5750
  }
5743
5751
  }
5744
5752
  });
@@ -6706,7 +6714,7 @@ var Preview2 = ({ id = "puck-preview" }) => {
6706
6714
  editMode: true,
6707
6715
  children: /* @__PURE__ */ jsx32(DropZonePure, { zone: rootDroppableId })
6708
6716
  })
6709
- ) : /* @__PURE__ */ jsx32(Render, { data: renderData, config, metadata });
6717
+ ) : /* @__PURE__ */ jsx32(Render, { data: renderData, config });
6710
6718
  useEffect20(() => {
6711
6719
  if (!iframe.enabled) {
6712
6720
  setStatus("READY");
package/dist/rsc.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as Config, U as UserGenerics, M as Metadata } from './walk-tree-BDO40vbf.mjs';
3
- export { ag as migrate, ai as resolveAllData, ah as transformProps, w as walkTree } from './walk-tree-BDO40vbf.mjs';
2
+ import { a as Config, U as UserGenerics, M as Metadata } from './walk-tree-BOSl1o0G.mjs';
3
+ export { af as migrate, ah as resolveAllData, ag as transformProps, w as walkTree } from './walk-tree-BOSl1o0G.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 { a as Config, U as UserGenerics, M as Metadata } from './walk-tree-BDO40vbf.js';
3
- export { ag as migrate, ai as resolveAllData, ah as transformProps, w as walkTree } from './walk-tree-BDO40vbf.js';
2
+ import { a as Config, U as UserGenerics, M as Metadata } from './walk-tree-BOSl1o0G.js';
3
+ export { af as migrate, ah as resolveAllData, ag as transformProps, w as walkTree } from './walk-tree-BOSl1o0G.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, }: {
@@ -548,4 +548,4 @@ type WalkTreeOptions = {
548
548
  };
549
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
550
 
551
- export { type Adaptor as $, type AppState as A, type BaseData as B, type ComponentData as C, type DropZoneProps as D, type ComponentDataOptionalId as E, type Fields as F, type MappedItem as G, type History as H, type IframeConfig as I, type ComponentDataMap as J, type Content as K, type BaseField as L, type Metadata as M, type NumberField as N, type Overrides as O, type Permissions as P, type TextareaField 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 SelectField as X, type RadioField as Y, type ArrayField as Z, type ObjectField as _, type Config as a, type ExternalFieldWithAdaptor as a0, type ExternalField as a1, type CustomFieldRender as a2, type CustomField as a3, type SlotField as a4, type PuckContext as a5, type DefaultRootFieldProps as a6, type DefaultRootRenderProps as a7, type DefaultRootProps as a8, type DefaultComponentProps as a9, type WithId as aa, type WithPuckProps as ab, type AsFieldProps as ac, type WithChildren as ad, type ExtractPropsFromConfig as ae, type ExtractRootPropsFromConfig as af, migrate as ag, transformProps as ah, resolveAllData as ai, 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 SlotComponent as u, type PuckComponent as v, walkTree as w, type RootConfig as x, type RootDataWithoutProps as y, type RootData as z };
551
+ 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 };
@@ -548,4 +548,4 @@ type WalkTreeOptions = {
548
548
  };
549
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
550
 
551
- export { type Adaptor as $, type AppState as A, type BaseData as B, type ComponentData as C, type DropZoneProps as D, type ComponentDataOptionalId as E, type Fields as F, type MappedItem as G, type History as H, type IframeConfig as I, type ComponentDataMap as J, type Content as K, type BaseField as L, type Metadata as M, type NumberField as N, type Overrides as O, type Permissions as P, type TextareaField 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 SelectField as X, type RadioField as Y, type ArrayField as Z, type ObjectField as _, type Config as a, type ExternalFieldWithAdaptor as a0, type ExternalField as a1, type CustomFieldRender as a2, type CustomField as a3, type SlotField as a4, type PuckContext as a5, type DefaultRootFieldProps as a6, type DefaultRootRenderProps as a7, type DefaultRootProps as a8, type DefaultComponentProps as a9, type WithId as aa, type WithPuckProps as ab, type AsFieldProps as ac, type WithChildren as ad, type ExtractPropsFromConfig as ae, type ExtractRootPropsFromConfig as af, migrate as ag, transformProps as ah, resolveAllData as ai, 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 SlotComponent as u, type PuckComponent as v, walkTree as w, type RootConfig as x, type RootDataWithoutProps as y, type RootData as z };
551
+ 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.20.0-canary.ba585f93",
3
+ "version": "0.20.0-canary.c119ed0d",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",