@puckeditor/core 0.23.0 → 0.24.0-canary.34794e5d

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 (36) hide show
  1. package/dist/{Editor-44C53YAG.mjs → Editor-7HVJABBS.mjs} +6 -6
  2. package/dist/{actions-DA1J5F56.d.mts → actions-DzP_zhsF.d.mts} +65 -18
  3. package/dist/{actions-DA1J5F56.d.ts → actions-DzP_zhsF.d.ts} +65 -18
  4. package/dist/{chunk-NJTGWYYH.mjs → chunk-75VT4L37.mjs} +1 -1
  5. package/dist/{chunk-55V3NZVF.mjs → chunk-A3M7OOIH.mjs} +98 -51
  6. package/dist/{chunk-YQWFSBOU.mjs → chunk-DWQZNG26.mjs} +58 -3
  7. package/dist/{chunk-GNR2HNTB.mjs → chunk-FHGOTDB5.mjs} +7 -7
  8. package/dist/{chunk-WF6I3XOL.mjs → chunk-FVMO3IOJ.mjs} +3 -3
  9. package/dist/{chunk-4P4VZS4P.mjs → chunk-L24AF7CT.mjs} +1 -1
  10. package/dist/{chunk-K2LNXU54.mjs → chunk-OOTCJDR3.mjs} +16 -0
  11. package/dist/{chunk-67Y7M4OJ.mjs → chunk-YBKRDXOL.mjs} +1 -1
  12. package/dist/{full-7ZJV44EE.mjs → full-35XZI7ZG.mjs} +5 -5
  13. package/dist/{index-DIZKfHDN.d.ts → index-Cv-eVWCd.d.ts} +1 -1
  14. package/dist/{index-n9eR_SWx.d.mts → index-poi3aTIz.d.mts} +1 -1
  15. package/dist/index.css +4 -3
  16. package/dist/index.d.mts +8 -6
  17. package/dist/index.d.ts +8 -6
  18. package/dist/index.js +169 -51
  19. package/dist/index.mjs +8 -8
  20. package/dist/internal.d.mts +2 -2
  21. package/dist/internal.d.ts +2 -2
  22. package/dist/{loaded-SMPR6KZF.mjs → loaded-2NYAMF3O.mjs} +2 -2
  23. package/dist/{loaded-JKA25A3T.mjs → loaded-ESP3PLMN.mjs} +2 -2
  24. package/dist/{loaded-36WRJPBT.mjs → loaded-RS7ITDTL.mjs} +2 -2
  25. package/dist/no-external.css +4 -3
  26. package/dist/no-external.d.mts +3 -3
  27. package/dist/no-external.d.ts +3 -3
  28. package/dist/no-external.js +169 -51
  29. package/dist/no-external.mjs +8 -8
  30. package/dist/rsc.d.mts +2 -2
  31. package/dist/rsc.d.ts +2 -2
  32. package/dist/rsc.js +57 -3
  33. package/dist/rsc.mjs +1 -1
  34. package/dist/{walk-tree-DbY5zG2K.d.ts → walk-tree-Bu3IHwm_.d.ts} +1 -1
  35. package/dist/{walk-tree-DHP1pWEM.d.mts → walk-tree-iWDqHBcM.d.mts} +1 -1
  36. package/package.json +1 -1
@@ -4,7 +4,7 @@ import {
4
4
  AlignLeft,
5
5
  AlignRight,
6
6
  useMessage
7
- } from "./chunk-K2LNXU54.mjs";
7
+ } from "./chunk-OOTCJDR3.mjs";
8
8
  import {
9
9
  init_react_import
10
10
  } from "./chunk-M6W7YEVX.mjs";
@@ -1,10 +1,10 @@
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-FHGOTDB5.mjs";
4
+ import "./chunk-YBKRDXOL.mjs";
5
+ import "./chunk-L24AF7CT.mjs";
6
+ import "./chunk-75VT4L37.mjs";
7
+ import "./chunk-OOTCJDR3.mjs";
8
8
  import "./chunk-Z2MS6UIF.mjs";
9
9
  import "./chunk-ZRAERXB4.mjs";
10
10
  import "./chunk-Y2EFNT5P.mjs";
@@ -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;
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;