@puckeditor/core 0.23.0 → 0.24.0-canary.301a0304

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.
Files changed (40) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +33 -0
  3. package/dist/{Editor-44C53YAG.mjs → Editor-IOB6CBHE.mjs} +7 -7
  4. package/dist/{Render-DQXAYUBI.mjs → Render-KIF7JWS4.mjs} +1 -1
  5. package/dist/{actions-DA1J5F56.d.mts → actions-DzP_zhsF.d.mts} +65 -18
  6. package/dist/{actions-DA1J5F56.d.ts → actions-DzP_zhsF.d.ts} +65 -18
  7. package/dist/{chunk-WF6I3XOL.mjs → chunk-3CZRCHCU.mjs} +4 -4
  8. package/dist/{chunk-GNR2HNTB.mjs → chunk-3OECBDNE.mjs} +8 -8
  9. package/dist/{chunk-NJTGWYYH.mjs → chunk-3USGHYFG.mjs} +1 -1
  10. package/dist/{chunk-55V3NZVF.mjs → chunk-3XBOFP3L.mjs} +110 -59
  11. package/dist/{chunk-4P4VZS4P.mjs → chunk-3YSLTDRT.mjs} +1 -1
  12. package/dist/{chunk-67Y7M4OJ.mjs → chunk-6MVGICFW.mjs} +1 -1
  13. package/dist/{chunk-K2LNXU54.mjs → chunk-MVHLONPE.mjs} +85 -69
  14. package/dist/{chunk-Y2EFNT5P.mjs → chunk-OT7NKYY4.mjs} +2 -2
  15. package/dist/{chunk-YQWFSBOU.mjs → chunk-XAJK3MOG.mjs} +60 -5
  16. package/dist/{full-7ZJV44EE.mjs → full-G3HMYLKK.mjs} +6 -6
  17. package/dist/{index-DIZKfHDN.d.ts → index-Cv-eVWCd.d.ts} +1 -1
  18. package/dist/{index-n9eR_SWx.d.mts → index-poi3aTIz.d.mts} +1 -1
  19. package/dist/index.css +4 -3
  20. package/dist/index.d.mts +19 -7
  21. package/dist/index.d.ts +19 -7
  22. package/dist/index.js +310 -187
  23. package/dist/index.mjs +11 -9
  24. package/dist/internal.d.mts +2 -2
  25. package/dist/internal.d.ts +2 -2
  26. package/dist/{loaded-JKA25A3T.mjs → loaded-2R7Z7VD4.mjs} +3 -3
  27. package/dist/{loaded-36WRJPBT.mjs → loaded-4W6LSSFR.mjs} +3 -3
  28. package/dist/{loaded-SMPR6KZF.mjs → loaded-O7MEOBEX.mjs} +3 -3
  29. package/dist/no-external.css +4 -3
  30. package/dist/no-external.d.mts +4 -4
  31. package/dist/no-external.d.ts +4 -4
  32. package/dist/no-external.js +310 -187
  33. package/dist/no-external.mjs +11 -9
  34. package/dist/rsc.d.mts +2 -2
  35. package/dist/rsc.d.ts +2 -2
  36. package/dist/rsc.js +59 -5
  37. package/dist/rsc.mjs +2 -2
  38. package/dist/{walk-tree-DbY5zG2K.d.ts → walk-tree-Bu3IHwm_.d.ts} +1 -1
  39. package/dist/{walk-tree-DHP1pWEM.d.mts → walk-tree-iWDqHBcM.d.mts} +1 -1
  40. package/package.json +34 -33
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-ZRAERXB4.mjs";
8
8
  import {
9
9
  get_class_name_factory_default
10
- } from "./chunk-Y2EFNT5P.mjs";
10
+ } from "./chunk-OT7NKYY4.mjs";
11
11
  import {
12
12
  getZoneId,
13
13
  mapFields,
@@ -267,6 +267,56 @@ function resolveAllData(_0, _1) {
267
267
  });
268
268
  }
269
269
 
270
+ // lib/props/shared/get-drop-zone-props.ts
271
+ init_react_import();
272
+ var CONSUMED_PROP_KEYS = {
273
+ zone: true,
274
+ allow: true,
275
+ disallow: true,
276
+ style: true,
277
+ minEmptyHeight: true,
278
+ className: true,
279
+ collisionAxis: true,
280
+ ref: true,
281
+ as: true,
282
+ content: true,
283
+ config: true,
284
+ metadata: true
285
+ };
286
+ var NON_FORWARDABLE_PROP_KEYS = {
287
+ children: true,
288
+ dangerouslySetInnerHTML: true
289
+ };
290
+ var CONSUMED_KEY_SET = new Set(
291
+ Object.keys(CONSUMED_PROP_KEYS)
292
+ );
293
+ var NON_FORWARDABLE_KEY_SET = new Set(
294
+ Object.keys(NON_FORWARDABLE_PROP_KEYS)
295
+ );
296
+ var getDropZoneProps = (allProps) => {
297
+ const props = /* @__PURE__ */ Object.create(null);
298
+ const forwardableProps = /* @__PURE__ */ Object.create(null);
299
+ const nonForwardableProps = /* @__PURE__ */ Object.create(null);
300
+ for (const key of Object.keys(allProps)) {
301
+ if (NON_FORWARDABLE_KEY_SET.has(key)) {
302
+ console.warn(
303
+ "The following prop is not supported by Puck DropZones or slots and will not be forwarded to the `as` element:",
304
+ key
305
+ );
306
+ nonForwardableProps[key] = allProps[key];
307
+ } else if (CONSUMED_KEY_SET.has(key)) {
308
+ props[key] = allProps[key];
309
+ } else {
310
+ forwardableProps[key] = allProps[key];
311
+ }
312
+ }
313
+ return {
314
+ props,
315
+ forwardableProps,
316
+ nonForwardableProps
317
+ };
318
+ };
319
+
270
320
  // lib/field-transforms/default-transforms/slot-transform.tsx
271
321
  init_react_import();
272
322
  var getSlotTransform = (renderSlotEdit, renderSlotRender = renderSlotEdit) => ({
@@ -377,7 +427,7 @@ var mapDeep = (source, path, render) => {
377
427
  // components/RichTextEditor/lib/use-richtext-props.tsx
378
428
  import { jsx as jsx2 } from "react/jsx-runtime";
379
429
  var RichTextRender = lazy(
380
- () => import("./Render-DQXAYUBI.mjs").then((m) => ({
430
+ () => import("./Render-KIF7JWS4.mjs").then((m) => ({
381
431
  default: m.RichTextRender
382
432
  }))
383
433
  );
@@ -444,9 +494,13 @@ var Item = ({
444
494
  );
445
495
  };
446
496
  var SlotRender = forwardRef(
447
- function SlotRenderInternal({ className, style, content, config, metadata, as }, ref) {
497
+ function SlotRenderInternal(allProps, ref) {
498
+ const {
499
+ props: { className, style, content, config, metadata, as },
500
+ forwardableProps
501
+ } = getDropZoneProps(allProps);
448
502
  const El = as != null ? as : "div";
449
- return /* @__PURE__ */ jsx3(El, { className, style, ref, children: content.map((item) => {
503
+ return /* @__PURE__ */ jsx3(El, __spreadProps(__spreadValues({}, forwardableProps), { className, style, ref, children: content.map((item) => {
450
504
  if (!config.components[item.type]) {
451
505
  return null;
452
506
  }
@@ -459,11 +513,12 @@ var SlotRender = forwardRef(
459
513
  },
460
514
  item.props.id
461
515
  );
462
- }) });
516
+ }) }));
463
517
  }
464
518
  );
465
519
 
466
520
  export {
521
+ getDropZoneProps,
467
522
  buildMappers,
468
523
  getSlotTransform,
469
524
  useSlots,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  LoadedRichTextMenuInner
3
- } from "./chunk-GNR2HNTB.mjs";
4
- import "./chunk-67Y7M4OJ.mjs";
5
- import "./chunk-4P4VZS4P.mjs";
6
- import "./chunk-NJTGWYYH.mjs";
7
- import "./chunk-K2LNXU54.mjs";
3
+ } from "./chunk-3OECBDNE.mjs";
4
+ import "./chunk-6MVGICFW.mjs";
5
+ import "./chunk-3YSLTDRT.mjs";
6
+ import "./chunk-3USGHYFG.mjs";
7
+ import "./chunk-MVHLONPE.mjs";
8
8
  import "./chunk-Z2MS6UIF.mjs";
9
9
  import "./chunk-ZRAERXB4.mjs";
10
- import "./chunk-Y2EFNT5P.mjs";
10
+ import "./chunk-OT7NKYY4.mjs";
11
11
  import "./chunk-H65MT2JK.mjs";
12
12
  import {
13
13
  __spreadValues,
@@ -1,4 +1,4 @@
1
- import { R as History, a1 as Permissions, i as ComponentData, m as Config, ao as UserGenerics, Q as Fields, a5 as PuckAction, af as RootDataWithProps, aa as ResolveDataTrigger, a2 as Plugin, a0 as Overrides, aq as Viewports, S as IframeConfig, an as UiState, f as ComponentConfig, a as AppState, X as Metadata, y as DndConfig, P as FieldTransforms, ac as RichtextField } from './actions-DA1J5F56.js';
1
+ import { R as History, a1 as Permissions, i as ComponentData, m as Config, ao as UserGenerics, Q as Fields, a5 as PuckAction, af as RootDataWithProps, aa as ResolveDataTrigger, a2 as Plugin, a0 as Overrides, aq as Viewports, S as IframeConfig, an as UiState, f as ComponentConfig, a as AppState, X as Metadata, y as DndConfig, P as FieldTransforms, ac as RichtextField } from './actions-DzP_zhsF.js';
2
2
  import { Editor } from '@tiptap/react';
3
3
 
4
4
  type HistorySlice<D = any> = {
@@ -1,4 +1,4 @@
1
- import { R as History, a1 as Permissions, i as ComponentData, m as Config, ao as UserGenerics, Q as Fields, a5 as PuckAction, af as RootDataWithProps, aa as ResolveDataTrigger, a2 as Plugin, a0 as Overrides, aq as Viewports, S as IframeConfig, an as UiState, f as ComponentConfig, a as AppState, X as Metadata, y as DndConfig, P as FieldTransforms, ac as RichtextField } from './actions-DA1J5F56.mjs';
1
+ import { R as History, a1 as Permissions, i as ComponentData, m as Config, ao as UserGenerics, Q as Fields, a5 as PuckAction, af as RootDataWithProps, aa as ResolveDataTrigger, a2 as Plugin, a0 as Overrides, aq as Viewports, S as IframeConfig, an as UiState, f as ComponentConfig, a as AppState, X as Metadata, y as DndConfig, P as FieldTransforms, ac as RichtextField } from './actions-DzP_zhsF.mjs';
2
2
  import { Editor } from '@tiptap/react';
3
3
 
4
4
  type HistorySlice<D = any> = {
package/dist/index.css CHANGED
@@ -1732,17 +1732,18 @@ body:has(._DropZone--isAnimating_wc2ks_74:empty) [data-puck-overlay] {
1732
1732
  }
1733
1733
 
1734
1734
  /* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
1735
- ._InlineTextField_104qp_1 {
1735
+ ._InlineTextField_af9vu_1 {
1736
1736
  cursor: text;
1737
1737
  display: inline-block;
1738
1738
  white-space: pre-wrap;
1739
1739
  text-decoration: inherit;
1740
+ overflow-wrap: inherit;
1740
1741
  }
1741
- [data-dnd-dragging] ._InlineTextField_104qp_1 {
1742
+ [data-dnd-dragging] ._InlineTextField_af9vu_1 {
1742
1743
  cursor: none;
1743
1744
  caret-color: transparent;
1744
1745
  }
1745
- [data-dnd-dragging] ._InlineTextField_104qp_1::selection {
1746
+ [data-dnd-dragging] ._InlineTextField_af9vu_1::selection {
1746
1747
  display: none;
1747
1748
  }
1748
1749
 
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { J as Field, L as FieldProps, E as DropZoneProps, m as Config, ao as UserGenerics, D as Data, an as UiState, _ as OnAction, a1 as Permissions, a2 as Plugin, a0 as Overrides, P as FieldTransforms, a5 as PuckAction, aq as Viewports, S as IframeConfig, y as DndConfig, T as InitialHistory, X as Metadata, aa as ResolveDataTrigger, U as ItemSelector, i as ComponentData, a3 as PluginInternal } from './actions-DA1J5F56.mjs';
2
- export { A as Adaptor, a as AppState, b as ArrayField, c as ArrayState, d as AsFieldProps, B as BaseData, e as BaseField, C as CacheOpts, f as ComponentConfig, g as ComponentConfigExtensions, h as ComponentConfigParams, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction, x as DndBehavior, z as DragAxis, F as ExternalField, G as ExternalFieldWithAdaptor, H as ExtractConfigParams, I as ExtractField, K as FieldMetadata, M as FieldRenderFunctions, N as FieldTransformFn, O as FieldTransformFnParams, Q as Fields, R as History, V as ItemWithId, W as MappedItem, Y as NumberField, Z as ObjectField, $ as OverrideKey, a6 as PuckComponent, a7 as PuckContext, a8 as PuckMetadata, a9 as RadioField, ab as RichText, ac as RichtextField, ad as RootConfig, ae as RootData, af as RootDataWithProps, ag as RootDataWithoutProps, ah as SelectField, ai as Slot, aj as SlotComponent, ak as SlotField, al as TextField, am as TextareaField, ap as Viewport, ar as WithChildren, as as WithDefaultRootFieldProps, at as WithId, au as WithPuckProps, av as WithSlotProps, aw as overrideKeys } from './actions-DA1J5F56.mjs';
3
- import { D as Dictionary, A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-n9eR_SWx.mjs';
4
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-DHP1pWEM.mjs';
1
+ import { J as Field, L as FieldProps, E as DropZoneProps, m as Config, ao as UserGenerics, D as Data, an as UiState, _ as OnAction, a1 as Permissions, a2 as Plugin, a0 as Overrides, P as FieldTransforms, a5 as PuckAction, aq as Viewports, S as IframeConfig, y as DndConfig, T as InitialHistory, X as Metadata, aa as ResolveDataTrigger, U as ItemSelector, i as ComponentData, a3 as PluginInternal } from './actions-DzP_zhsF.mjs';
2
+ export { A as Adaptor, a as AppState, b as ArrayField, c as ArrayState, d as AsFieldProps, B as BaseData, e as BaseField, C as CacheOpts, f as ComponentConfig, g as ComponentConfigExtensions, h as ComponentConfigParams, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction, x as DndBehavior, z as DragAxis, F as ExternalField, G as ExternalFieldWithAdaptor, H as ExtractConfigParams, I as ExtractField, K as FieldMetadata, M as FieldRenderFunctions, N as FieldTransformFn, O as FieldTransformFnParams, Q as Fields, R as History, V as ItemWithId, W as MappedItem, Y as NumberField, Z as ObjectField, $ as OverrideKey, a6 as PuckComponent, a7 as PuckContext, a8 as PuckMetadata, a9 as RadioField, ab as RichText, ac as RichtextField, ad as RootConfig, ae as RootData, af as RootDataWithProps, ag as RootDataWithoutProps, ah as SelectField, ai as Slot, aj as SlotComponent, ak as SlotField, al as TextField, am as TextareaField, ap as Viewport, ar as WithChildren, as as WithDefaultRootFieldProps, at as WithId, au as WithPuckProps, av as WithSlotProps, aw as overrideKeys } from './actions-DzP_zhsF.mjs';
3
+ import { D as Dictionary, A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-poi3aTIz.mjs';
4
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-iWDqHBcM.mjs';
5
5
  import * as react from 'react';
6
- import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
6
+ import react__default, { ReactNode, SyntheticEvent, ReactElement, ElementType, Ref, CSSProperties } from 'react';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import '@tiptap/react';
9
9
  import '@tiptap/extension-blockquote';
@@ -104,7 +104,9 @@ declare const Drawer: {
104
104
  }) => react_jsx_runtime.JSX.Element;
105
105
  };
106
106
 
107
- declare const DropZone: react.ForwardRefExoticComponent<Omit<DropZoneProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
107
+ declare const DropZone: <ComponentType extends ElementType = "div">(props: DropZoneProps<ComponentType> & {
108
+ ref?: Ref<HTMLDivElement>;
109
+ }) => ReactElement | null;
108
110
 
109
111
  declare const IconButton: react.ForwardRefExoticComponent<{
110
112
  active?: boolean;
@@ -120,6 +122,16 @@ declare const IconButton: react.ForwardRefExoticComponent<{
120
122
  suppressHydrationWarning?: boolean;
121
123
  } & react.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
122
124
 
125
+ declare const InlineTextField: react.MemoExoticComponent<({ propPath, componentId, value, isReadOnly, opts, }: {
126
+ propPath: string;
127
+ value: string | null | undefined;
128
+ componentId: string;
129
+ isReadOnly: boolean;
130
+ opts?: {
131
+ disableLineBreaks?: boolean;
132
+ };
133
+ }) => react_jsx_runtime.JSX.Element>;
134
+
123
135
  type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
124
136
  children?: ReactNode;
125
137
  config: UserConfig;
@@ -324,4 +336,4 @@ declare const legacySideBarPlugin: (props?: {
324
336
  componentsLabel?: string;
325
337
  }) => Plugin;
326
338
 
327
- export { Action, ActionBar, AutoField, type BlocksPluginProps, Button, ComponentData, Config, Data, Dictionary, DndConfig, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Group, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, type OutlinePluginProps, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RichTextMenu, Separator, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
339
+ export { Action, ActionBar, AutoField, type BlocksPluginProps, Button, ComponentData, Config, Data, Dictionary, DndConfig, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Group, IconButton, IframeConfig, InitialHistory, InlineTextField, Label, Metadata, OnAction, type OutlinePluginProps, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RichTextMenu, Separator, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { J as Field, L as FieldProps, E as DropZoneProps, m as Config, ao as UserGenerics, D as Data, an as UiState, _ as OnAction, a1 as Permissions, a2 as Plugin, a0 as Overrides, P as FieldTransforms, a5 as PuckAction, aq as Viewports, S as IframeConfig, y as DndConfig, T as InitialHistory, X as Metadata, aa as ResolveDataTrigger, U as ItemSelector, i as ComponentData, a3 as PluginInternal } from './actions-DA1J5F56.js';
2
- export { A as Adaptor, a as AppState, b as ArrayField, c as ArrayState, d as AsFieldProps, B as BaseData, e as BaseField, C as CacheOpts, f as ComponentConfig, g as ComponentConfigExtensions, h as ComponentConfigParams, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction, x as DndBehavior, z as DragAxis, F as ExternalField, G as ExternalFieldWithAdaptor, H as ExtractConfigParams, I as ExtractField, K as FieldMetadata, M as FieldRenderFunctions, N as FieldTransformFn, O as FieldTransformFnParams, Q as Fields, R as History, V as ItemWithId, W as MappedItem, Y as NumberField, Z as ObjectField, $ as OverrideKey, a6 as PuckComponent, a7 as PuckContext, a8 as PuckMetadata, a9 as RadioField, ab as RichText, ac as RichtextField, ad as RootConfig, ae as RootData, af as RootDataWithProps, ag as RootDataWithoutProps, ah as SelectField, ai as Slot, aj as SlotComponent, ak as SlotField, al as TextField, am as TextareaField, ap as Viewport, ar as WithChildren, as as WithDefaultRootFieldProps, at as WithId, au as WithPuckProps, av as WithSlotProps, aw as overrideKeys } from './actions-DA1J5F56.js';
3
- import { D as Dictionary, A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-DIZKfHDN.js';
4
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-DbY5zG2K.js';
1
+ import { J as Field, L as FieldProps, E as DropZoneProps, m as Config, ao as UserGenerics, D as Data, an as UiState, _ as OnAction, a1 as Permissions, a2 as Plugin, a0 as Overrides, P as FieldTransforms, a5 as PuckAction, aq as Viewports, S as IframeConfig, y as DndConfig, T as InitialHistory, X as Metadata, aa as ResolveDataTrigger, U as ItemSelector, i as ComponentData, a3 as PluginInternal } from './actions-DzP_zhsF.js';
2
+ export { A as Adaptor, a as AppState, b as ArrayField, c as ArrayState, d as AsFieldProps, B as BaseData, e as BaseField, C as CacheOpts, f as ComponentConfig, g as ComponentConfigExtensions, h as ComponentConfigParams, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction, x as DndBehavior, z as DragAxis, F as ExternalField, G as ExternalFieldWithAdaptor, H as ExtractConfigParams, I as ExtractField, K as FieldMetadata, M as FieldRenderFunctions, N as FieldTransformFn, O as FieldTransformFnParams, Q as Fields, R as History, V as ItemWithId, W as MappedItem, Y as NumberField, Z as ObjectField, $ as OverrideKey, a6 as PuckComponent, a7 as PuckContext, a8 as PuckMetadata, a9 as RadioField, ab as RichText, ac as RichtextField, ad as RootConfig, ae as RootData, af as RootDataWithProps, ag as RootDataWithoutProps, ah as SelectField, ai as Slot, aj as SlotComponent, ak as SlotField, al as TextField, am as TextareaField, ap as Viewport, ar as WithChildren, as as WithDefaultRootFieldProps, at as WithId, au as WithPuckProps, av as WithSlotProps, aw as overrideKeys } from './actions-DzP_zhsF.js';
3
+ import { D as Dictionary, A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-Cv-eVWCd.js';
4
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Bu3IHwm_.js';
5
5
  import * as react from 'react';
6
- import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
6
+ import react__default, { ReactNode, SyntheticEvent, ReactElement, ElementType, Ref, CSSProperties } from 'react';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import '@tiptap/react';
9
9
  import '@tiptap/extension-blockquote';
@@ -104,7 +104,9 @@ declare const Drawer: {
104
104
  }) => react_jsx_runtime.JSX.Element;
105
105
  };
106
106
 
107
- declare const DropZone: react.ForwardRefExoticComponent<Omit<DropZoneProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
107
+ declare const DropZone: <ComponentType extends ElementType = "div">(props: DropZoneProps<ComponentType> & {
108
+ ref?: Ref<HTMLDivElement>;
109
+ }) => ReactElement | null;
108
110
 
109
111
  declare const IconButton: react.ForwardRefExoticComponent<{
110
112
  active?: boolean;
@@ -120,6 +122,16 @@ declare const IconButton: react.ForwardRefExoticComponent<{
120
122
  suppressHydrationWarning?: boolean;
121
123
  } & react.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
122
124
 
125
+ declare const InlineTextField: react.MemoExoticComponent<({ propPath, componentId, value, isReadOnly, opts, }: {
126
+ propPath: string;
127
+ value: string | null | undefined;
128
+ componentId: string;
129
+ isReadOnly: boolean;
130
+ opts?: {
131
+ disableLineBreaks?: boolean;
132
+ };
133
+ }) => react_jsx_runtime.JSX.Element>;
134
+
123
135
  type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
124
136
  children?: ReactNode;
125
137
  config: UserConfig;
@@ -324,4 +336,4 @@ declare const legacySideBarPlugin: (props?: {
324
336
  componentsLabel?: string;
325
337
  }) => Plugin;
326
338
 
327
- export { Action, ActionBar, AutoField, type BlocksPluginProps, Button, ComponentData, Config, Data, Dictionary, DndConfig, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Group, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, type OutlinePluginProps, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RichTextMenu, Separator, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
339
+ export { Action, ActionBar, AutoField, type BlocksPluginProps, Button, ComponentData, Config, Data, Dictionary, DndConfig, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Group, IconButton, IframeConfig, InitialHistory, InlineTextField, Label, Metadata, OnAction, type OutlinePluginProps, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RichTextMenu, Separator, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };