@puckeditor/core 0.22.0-canary.faffb521 → 0.22.0

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 (35) hide show
  1. package/dist/{Editor-HFELA66Z.mjs → Editor-FJJNKTC3.mjs} +8 -9
  2. package/dist/Editor-ZZW3KF2T.css +385 -0
  3. package/dist/{Render-MJ563JES.mjs → Render-DQXAYUBI.mjs} +1 -1
  4. package/dist/Render-EKEWMTMI.css +117 -0
  5. package/dist/{chunk-GFIZBMKN.mjs → chunk-3RQGAM3Z.mjs} +1 -1
  6. package/dist/{chunk-6PUO3QRB.mjs → chunk-4US666EQ.mjs} +91 -248
  7. package/dist/{chunk-52JFFDX2.mjs → chunk-ELDOSC5Y.mjs} +1469 -1335
  8. package/dist/{chunk-4V66DSMA.mjs → chunk-GKUX6MNS.mjs} +4 -4
  9. package/dist/{chunk-AOEDIUVK.mjs → chunk-H635BA2V.mjs} +1 -1
  10. package/dist/{chunk-4X2SLJRQ.mjs → chunk-M5GPDW62.mjs} +1 -1
  11. package/dist/{chunk-CO6PRTVM.mjs → chunk-SSXLOL3N.mjs} +6 -6
  12. package/dist/{chunk-MQKADUDK.mjs → chunk-XIGSFEU7.mjs} +1 -1
  13. package/dist/{chunk-OVPTKQ2P.mjs → chunk-XQHCQEAF.mjs} +229 -51
  14. package/dist/{full-YKFH7JSW.mjs → full-6ZILLKCS.mjs} +6 -6
  15. package/dist/full-S3QQ2IBQ.css +267 -0
  16. package/dist/index.css +1287 -1171
  17. package/dist/index.d.mts +9 -9
  18. package/dist/index.d.ts +9 -9
  19. package/dist/index.js +1993 -1837
  20. package/dist/index.mjs +11 -10
  21. package/dist/loaded-FVWRAJR3.css +215 -0
  22. package/dist/{loaded-A7UUCT2O.mjs → loaded-LAKI4KDY.mjs} +2 -2
  23. package/dist/{loaded-2QS7VXZ6.mjs → loaded-PILFUJGA.mjs} +2 -2
  24. package/dist/{loaded-JHBS3QYA.mjs → loaded-QH5RKCGC.mjs} +2 -2
  25. package/dist/no-external.css +1287 -1171
  26. package/dist/no-external.js +1993 -1837
  27. package/dist/no-external.mjs +11 -10
  28. package/dist/rsc.css +61 -46
  29. package/dist/rsc.js +6 -6
  30. package/dist/rsc.mjs +2 -2
  31. package/package.json +1 -1
  32. package/dist/Editor-IQP25PUX.css +0 -404
  33. package/dist/Render-3OV4N4MT.css +0 -102
  34. package/dist/full-2GJTAAZE.css +0 -301
  35. package/dist/loaded-RVWBFK7L.css +0 -87
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
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
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
3
  export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BrW9VQ_t.mjs';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
5
4
  import * as react from 'react';
6
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
6
+ import * as react_jsx_runtime from 'react/jsx-runtime';
7
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';
@@ -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,9 +1,9 @@
1
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
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
3
  export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CWrsBHHe.js';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
5
4
  import * as react from 'react';
6
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
6
+ import * as react_jsx_runtime from 'react/jsx-runtime';
7
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';
@@ -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;