@puckeditor/core 0.21.3 → 0.22.0-canary.0c2f7ab8

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 (52) hide show
  1. package/README.md +1 -4
  2. package/dist/{Editor-MCVDFQH6.mjs → Editor-FJJNKTC3.mjs} +10 -11
  3. package/dist/Editor-ZZW3KF2T.css +385 -0
  4. package/dist/{Render-MJ563JES.mjs → Render-DQXAYUBI.mjs} +1 -1
  5. package/dist/Render-EKEWMTMI.css +117 -0
  6. package/dist/{actions-C3e2nJ9v.d.mts → actions-Csn3gOP8.d.mts} +3 -1
  7. package/dist/{actions-C3e2nJ9v.d.ts → actions-Csn3gOP8.d.ts} +3 -1
  8. package/dist/{chunk-ZMTK7SMX.mjs → chunk-3RQGAM3Z.mjs} +1 -1
  9. package/dist/{chunk-HGJWUFLT.mjs → chunk-4US666EQ.mjs} +91 -248
  10. package/dist/{chunk-4HOGLOEA.mjs → chunk-6MO3E35Y.mjs} +5 -3
  11. package/dist/{chunk-6XCJ3Y7O.mjs → chunk-DVZWVU66.mjs} +55 -2
  12. package/dist/{chunk-TDQEUXB2.mjs → chunk-GKUX6MNS.mjs} +4 -4
  13. package/dist/{chunk-AOEDIUVK.mjs → chunk-H635BA2V.mjs} +1 -1
  14. package/dist/{chunk-DPDJ67KA.mjs → chunk-M5GPDW62.mjs} +1 -1
  15. package/dist/{chunk-YXFTA2VL.mjs → chunk-SLDNFU3H.mjs} +3378 -432
  16. package/dist/{chunk-X2ZFWNCU.mjs → chunk-SSXLOL3N.mjs} +18 -15
  17. package/dist/{chunk-LODTL5KW.mjs → chunk-XIGSFEU7.mjs} +1 -1
  18. package/dist/{chunk-O7FT3KAM.mjs → chunk-XQHCQEAF.mjs} +233 -54
  19. package/dist/{full-5QCBHXRC.mjs → full-6ZILLKCS.mjs} +7 -7
  20. package/dist/full-S3QQ2IBQ.css +267 -0
  21. package/dist/{index-Cx46WIFC.d.ts → index-B1b1cFug.d.ts} +1 -1
  22. package/dist/{index-zHrchQGY.d.mts → index-ClzBCbx_.d.mts} +1 -1
  23. package/dist/index.css +1293 -1162
  24. package/dist/index.d.mts +13 -13
  25. package/dist/index.d.ts +13 -13
  26. package/dist/index.js +3788 -752
  27. package/dist/index.mjs +13 -12
  28. package/dist/internal.d.mts +2 -2
  29. package/dist/internal.d.ts +2 -2
  30. package/dist/internal.js +48 -2
  31. package/dist/internal.mjs +1 -1
  32. package/dist/loaded-FVWRAJR3.css +215 -0
  33. package/dist/{loaded-OMRIYZIQ.mjs → loaded-LAKI4KDY.mjs} +4 -4
  34. package/dist/{loaded-Y4ZWZC55.mjs → loaded-PILFUJGA.mjs} +4 -4
  35. package/dist/{loaded-54625GTL.mjs → loaded-QH5RKCGC.mjs} +4 -4
  36. package/dist/no-external.css +1293 -1162
  37. package/dist/no-external.d.mts +3 -3
  38. package/dist/no-external.d.ts +3 -3
  39. package/dist/no-external.js +3788 -752
  40. package/dist/no-external.mjs +13 -12
  41. package/dist/rsc.css +61 -46
  42. package/dist/rsc.d.mts +2 -2
  43. package/dist/rsc.d.ts +2 -2
  44. package/dist/rsc.js +22 -17
  45. package/dist/rsc.mjs +3 -3
  46. package/dist/{walk-tree-BJoNgZ0l.d.mts → walk-tree-BrW9VQ_t.d.mts} +1 -1
  47. package/dist/{walk-tree-f8Yzs5o3.d.ts → walk-tree-CWrsBHHe.d.ts} +1 -1
  48. package/package.json +13 -5
  49. package/dist/Editor-SWYBDXGU.css +0 -395
  50. package/dist/Render-3OV4N4MT.css +0 -102
  51. package/dist/full-FFFM5OTN.css +0 -292
  52. package/dist/loaded-RVWBFK7L.css +0 -87
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
- import { p as Field, q as FieldProps, r as DropZoneProps, C as Config, U as UserGenerics, D as Data, l as UiState, O as OnAction, g as Permissions, j as Plugin, k as Overrides, n as FieldTransforms, a as PuckAction, V as Viewports, I as IframeConfig, s as InitialHistory, M as Metadata, i as ResolveDataTrigger, t as ItemSelector, c as ComponentData, u as PluginInternal } from './actions-C3e2nJ9v.mjs';
2
- export { v as Adaptor, A as AppState, w as ArrayField, x as ArrayState, y as AsFieldProps, B as BaseData, z as BaseField, E as CacheOpts, m as ComponentConfig, G as ComponentConfigExtensions, J as ComponentConfigParams, K as ComponentDataMap, L as ComponentDataOptionalId, N as ComponentMetadata, Q as ConfigParams, b as Content, S as CustomField, T as CustomFieldRender, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, X as DefaultRootProps, Y as DefaultRootRenderProps, Z as Direction, _ as DragAxis, $ as ExternalField, a0 as ExternalFieldWithAdaptor, a1 as ExtractConfigParams, a2 as ExtractField, a3 as FieldMetadata, a4 as FieldRenderFunctions, a5 as FieldTransformFn, a6 as FieldTransformFnParams, F as Fields, H as History, a7 as ItemWithId, a8 as MappedItem, a9 as NumberField, aa as ObjectField, ab as OverrideKey, ac as PuckComponent, ad as PuckContext, ae as PuckMetadata, af as RadioField, ag as RichText, o as RichtextField, ah as RootConfig, R as RootData, h as RootDataWithProps, ai as RootDataWithoutProps, aj as SelectField, ak as Slot, al as SlotComponent, am as SlotField, an as TextField, ao as TextareaField, ap as Viewport, aq as WithChildren, W as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-C3e2nJ9v.mjs';
3
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BJoNgZ0l.mjs';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import { H as Field, J as FieldProps, y as DropZoneProps, m as Config, am as UserGenerics, D as Data, al as UiState, Y as OnAction, $ as Permissions, a0 as Plugin, _ as Overrides, N as FieldTransforms, a3 as PuckAction, ao as Viewports, Q as IframeConfig, R as InitialHistory, V as Metadata, a8 as ResolveDataTrigger, S as ItemSelector, i as ComponentData, a1 as PluginInternal } from './actions-Csn3gOP8.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 DragAxis, E as ExternalField, z as ExternalFieldWithAdaptor, F as ExtractConfigParams, G as ExtractField, I as FieldMetadata, K as FieldRenderFunctions, L as FieldTransformFn, M as FieldTransformFnParams, O as Fields, P as History, T as ItemWithId, U as MappedItem, W as NumberField, X as ObjectField, Z as OverrideKey, a4 as PuckComponent, a5 as PuckContext, a6 as PuckMetadata, a7 as RadioField, a9 as RichText, aa as RichtextField, ab as RootConfig, ac as RootData, ad as RootDataWithProps, ae as RootDataWithoutProps, af as SelectField, ag as Slot, ah as SlotComponent, ai as SlotField, aj as TextField, ak as TextareaField, an as Viewport, ap as WithChildren, aq as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-Csn3gOP8.mjs';
3
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BrW9VQ_t.mjs';
5
4
  import * as react from 'react';
6
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
7
- import { A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-zHrchQGY.mjs';
6
+ import * as react_jsx_runtime from 'react/jsx-runtime';
7
+ import { A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-ClzBCbx_.mjs';
8
8
  import '@tiptap/react';
9
9
  import '@tiptap/extension-blockquote';
10
10
  import '@tiptap/extension-bold';
@@ -26,13 +26,13 @@ declare const ActionBar: {
26
26
  label?: string;
27
27
  children?: ReactNode;
28
28
  }): react_jsx_runtime.JSX.Element;
29
- Action: ({ children, label, onClick, active, disabled, }: {
29
+ Action: react.ForwardRefExoticComponent<{
30
30
  children: ReactNode;
31
31
  label?: string;
32
- onClick: (e: SyntheticEvent) => void;
32
+ onClick?: (e: SyntheticEvent) => void;
33
33
  active?: boolean;
34
34
  disabled?: boolean;
35
- }) => react_jsx_runtime.JSX.Element;
35
+ } & react.RefAttributes<HTMLButtonElement>>;
36
36
  Label: ({ label }: {
37
37
  label: string;
38
38
  }) => react_jsx_runtime.JSX.Element;
@@ -41,13 +41,13 @@ declare const ActionBar: {
41
41
  }) => react_jsx_runtime.JSX.Element;
42
42
  Separator: () => react_jsx_runtime.JSX.Element;
43
43
  };
44
- declare const Action: ({ children, label, onClick, active, disabled, }: {
44
+ declare const Action: react.ForwardRefExoticComponent<{
45
45
  children: ReactNode;
46
46
  label?: string;
47
- onClick: (e: SyntheticEvent) => void;
47
+ onClick?: (e: SyntheticEvent) => void;
48
48
  active?: boolean;
49
49
  disabled?: boolean;
50
- }) => react_jsx_runtime.JSX.Element;
50
+ } & react.RefAttributes<HTMLButtonElement>>;
51
51
  declare const Group: ({ children }: {
52
52
  children: ReactNode;
53
53
  }) => react_jsx_runtime.JSX.Element;
@@ -106,7 +106,7 @@ declare const Drawer: {
106
106
 
107
107
  declare const DropZone: react.ForwardRefExoticComponent<Omit<DropZoneProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
108
108
 
109
- declare const IconButton: ({ active, children, href, onClick, type, disabled, tabIndex, newTab, fullWidth, title, suppressHydrationWarning, }: {
109
+ declare const IconButton: react.ForwardRefExoticComponent<{
110
110
  active?: boolean;
111
111
  children: ReactNode;
112
112
  href?: string;
@@ -118,7 +118,7 @@ declare const IconButton: ({ active, children, href, onClick, type, disabled, ta
118
118
  fullWidth?: boolean;
119
119
  title: string;
120
120
  suppressHydrationWarning?: boolean;
121
- }) => react_jsx_runtime.JSX.Element;
121
+ } & react.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
122
122
 
123
123
  type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
124
124
  children?: ReactNode;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { p as Field, q as FieldProps, r as DropZoneProps, C as Config, U as UserGenerics, D as Data, l as UiState, O as OnAction, g as Permissions, j as Plugin, k as Overrides, n as FieldTransforms, a as PuckAction, V as Viewports, I as IframeConfig, s as InitialHistory, M as Metadata, i as ResolveDataTrigger, t as ItemSelector, c as ComponentData, u as PluginInternal } from './actions-C3e2nJ9v.js';
2
- export { v as Adaptor, A as AppState, w as ArrayField, x as ArrayState, y as AsFieldProps, B as BaseData, z as BaseField, E as CacheOpts, m as ComponentConfig, G as ComponentConfigExtensions, J as ComponentConfigParams, K as ComponentDataMap, L as ComponentDataOptionalId, N as ComponentMetadata, Q as ConfigParams, b as Content, S as CustomField, T as CustomFieldRender, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, X as DefaultRootProps, Y as DefaultRootRenderProps, Z as Direction, _ as DragAxis, $ as ExternalField, a0 as ExternalFieldWithAdaptor, a1 as ExtractConfigParams, a2 as ExtractField, a3 as FieldMetadata, a4 as FieldRenderFunctions, a5 as FieldTransformFn, a6 as FieldTransformFnParams, F as Fields, H as History, a7 as ItemWithId, a8 as MappedItem, a9 as NumberField, aa as ObjectField, ab as OverrideKey, ac as PuckComponent, ad as PuckContext, ae as PuckMetadata, af as RadioField, ag as RichText, o as RichtextField, ah as RootConfig, R as RootData, h as RootDataWithProps, ai as RootDataWithoutProps, aj as SelectField, ak as Slot, al as SlotComponent, am as SlotField, an as TextField, ao as TextareaField, ap as Viewport, aq as WithChildren, W as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-C3e2nJ9v.js';
3
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-f8Yzs5o3.js';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import { H as Field, J as FieldProps, y as DropZoneProps, m as Config, am as UserGenerics, D as Data, al as UiState, Y as OnAction, $ as Permissions, a0 as Plugin, _ as Overrides, N as FieldTransforms, a3 as PuckAction, ao as Viewports, Q as IframeConfig, R as InitialHistory, V as Metadata, a8 as ResolveDataTrigger, S as ItemSelector, i as ComponentData, a1 as PluginInternal } from './actions-Csn3gOP8.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 DragAxis, E as ExternalField, z as ExternalFieldWithAdaptor, F as ExtractConfigParams, G as ExtractField, I as FieldMetadata, K as FieldRenderFunctions, L as FieldTransformFn, M as FieldTransformFnParams, O as Fields, P as History, T as ItemWithId, U as MappedItem, W as NumberField, X as ObjectField, Z as OverrideKey, a4 as PuckComponent, a5 as PuckContext, a6 as PuckMetadata, a7 as RadioField, a9 as RichText, aa as RichtextField, ab as RootConfig, ac as RootData, ad as RootDataWithProps, ae as RootDataWithoutProps, af as SelectField, ag as Slot, ah as SlotComponent, ai as SlotField, aj as TextField, ak as TextareaField, an as Viewport, ap as WithChildren, aq as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-Csn3gOP8.js';
3
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CWrsBHHe.js';
5
4
  import * as react from 'react';
6
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
7
- import { A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-Cx46WIFC.js';
6
+ import * as react_jsx_runtime from 'react/jsx-runtime';
7
+ import { A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-B1b1cFug.js';
8
8
  import '@tiptap/react';
9
9
  import '@tiptap/extension-blockquote';
10
10
  import '@tiptap/extension-bold';
@@ -26,13 +26,13 @@ declare const ActionBar: {
26
26
  label?: string;
27
27
  children?: ReactNode;
28
28
  }): react_jsx_runtime.JSX.Element;
29
- Action: ({ children, label, onClick, active, disabled, }: {
29
+ Action: react.ForwardRefExoticComponent<{
30
30
  children: ReactNode;
31
31
  label?: string;
32
- onClick: (e: SyntheticEvent) => void;
32
+ onClick?: (e: SyntheticEvent) => void;
33
33
  active?: boolean;
34
34
  disabled?: boolean;
35
- }) => react_jsx_runtime.JSX.Element;
35
+ } & react.RefAttributes<HTMLButtonElement>>;
36
36
  Label: ({ label }: {
37
37
  label: string;
38
38
  }) => react_jsx_runtime.JSX.Element;
@@ -41,13 +41,13 @@ declare const ActionBar: {
41
41
  }) => react_jsx_runtime.JSX.Element;
42
42
  Separator: () => react_jsx_runtime.JSX.Element;
43
43
  };
44
- declare const Action: ({ children, label, onClick, active, disabled, }: {
44
+ declare const Action: react.ForwardRefExoticComponent<{
45
45
  children: ReactNode;
46
46
  label?: string;
47
- onClick: (e: SyntheticEvent) => void;
47
+ onClick?: (e: SyntheticEvent) => void;
48
48
  active?: boolean;
49
49
  disabled?: boolean;
50
- }) => react_jsx_runtime.JSX.Element;
50
+ } & react.RefAttributes<HTMLButtonElement>>;
51
51
  declare const Group: ({ children }: {
52
52
  children: ReactNode;
53
53
  }) => react_jsx_runtime.JSX.Element;
@@ -106,7 +106,7 @@ declare const Drawer: {
106
106
 
107
107
  declare const DropZone: react.ForwardRefExoticComponent<Omit<DropZoneProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
108
108
 
109
- declare const IconButton: ({ active, children, href, onClick, type, disabled, tabIndex, newTab, fullWidth, title, suppressHydrationWarning, }: {
109
+ declare const IconButton: react.ForwardRefExoticComponent<{
110
110
  active?: boolean;
111
111
  children: ReactNode;
112
112
  href?: string;
@@ -118,7 +118,7 @@ declare const IconButton: ({ active, children, href, onClick, type, disabled, ta
118
118
  fullWidth?: boolean;
119
119
  title: string;
120
120
  suppressHydrationWarning?: boolean;
121
- }) => react_jsx_runtime.JSX.Element;
121
+ } & react.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
122
122
 
123
123
  type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
124
124
  children?: ReactNode;