@puckeditor/core 0.24.0-canary.fcfd4b94 → 0.24.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 (45) hide show
  1. package/CHANGELOG.md +1244 -0
  2. package/LICENSE +21 -0
  3. package/dist/{Editor-T7TKW6NT.css → Editor-CSDMK75G.css} +24 -16
  4. package/dist/{Editor-7HVJABBS.mjs → Editor-LJSLIQQP.mjs} +9 -9
  5. package/dist/{Render-DQXAYUBI.mjs → Render-H3USS5FU.mjs} +2 -2
  6. package/dist/{actions-DzP_zhsF.d.ts → actions-Dgllwd-W.d.mts} +24 -4
  7. package/dist/{actions-DzP_zhsF.d.mts → actions-Dgllwd-W.d.ts} +24 -4
  8. package/dist/{chunk-DWQZNG26.mjs → chunk-3GJJSXCL.mjs} +85 -52
  9. package/dist/{chunk-FHGOTDB5.mjs → chunk-5L3MP6BU.mjs} +8 -8
  10. package/dist/{chunk-PI2N6YRG.mjs → chunk-DQXMVPVM.mjs} +2536 -1426
  11. package/dist/{chunk-OOTCJDR3.mjs → chunk-FWBFOZBF.mjs} +189 -139
  12. package/dist/{chunk-75VT4L37.mjs → chunk-M6VGZJMS.mjs} +1 -1
  13. package/dist/{chunk-YBKRDXOL.mjs → chunk-OGTX6PQW.mjs} +1 -1
  14. package/dist/{chunk-Y2EFNT5P.mjs → chunk-OT7NKYY4.mjs} +2 -2
  15. package/dist/{chunk-FVMO3IOJ.mjs → chunk-UIJZMSVU.mjs} +4 -4
  16. package/dist/{chunk-ZRAERXB4.mjs → chunk-XMN55NON.mjs} +3 -2
  17. package/dist/{chunk-L24AF7CT.mjs → chunk-ZO7CHPM6.mjs} +1 -1
  18. package/dist/{chunk-2CNEFIQP.mjs → chunk-ZOLLDKZQ.mjs} +4 -1
  19. package/dist/{full-AAZK6KLI.css → full-F3CBWTKQ.css} +24 -16
  20. package/dist/{full-35XZI7ZG.mjs → full-H4FZ3HN3.mjs} +7 -7
  21. package/dist/{index-Cv-eVWCd.d.ts → index-D0qqZNSQ.d.mts} +2 -1
  22. package/dist/{index-poi3aTIz.d.mts → index-dKPCNzR1.d.ts} +2 -1
  23. package/dist/index.css +371 -127
  24. package/dist/index.d.mts +64 -8
  25. package/dist/index.d.ts +64 -8
  26. package/dist/index.js +5731 -4535
  27. package/dist/index.mjs +16 -10
  28. package/dist/internal.d.mts +2 -2
  29. package/dist/internal.d.ts +2 -2
  30. package/dist/{loaded-ESP3PLMN.mjs → loaded-P5HN7RJY.mjs} +4 -4
  31. package/dist/{loaded-RS7ITDTL.mjs → loaded-PFIA543C.mjs} +4 -4
  32. package/dist/{loaded-CA3Q7UHH.css → loaded-UDM5EYPG.css} +24 -16
  33. package/dist/{loaded-2NYAMF3O.mjs → loaded-WFQRY2XL.mjs} +4 -4
  34. package/dist/no-external.css +371 -127
  35. package/dist/no-external.d.mts +4 -4
  36. package/dist/no-external.d.ts +4 -4
  37. package/dist/no-external.js +5731 -4535
  38. package/dist/no-external.mjs +16 -10
  39. package/dist/rsc.d.mts +4 -3
  40. package/dist/rsc.d.ts +4 -3
  41. package/dist/rsc.js +139 -70
  42. package/dist/rsc.mjs +51 -21
  43. package/dist/{walk-tree-iWDqHBcM.d.mts → walk-tree-BA4pi921.d.mts} +1 -1
  44. package/dist/{walk-tree-Bu3IHwm_.d.ts → walk-tree-zKkZGcaE.d.ts} +1 -1
  45. package/package.json +37 -35
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
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';
1
+ import { K as Field, N as FieldProps, L as FieldGroupVariant, F as DropZoneProps, n as Config, aq as UserGenerics, D as Data, ap as UiState, a0 as OnAction, a3 as Permissions, a4 as Plugin, a2 as Overrides, R as FieldTransforms, a7 as PuckAction, as as Viewports, U as IframeConfig, z as DndConfig, V as InitialHistory, Z as Metadata, ac as ResolveDataTrigger, W as ItemSelector, j as ComponentData, a5 as PluginInternal } from './actions-Dgllwd-W.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 CheckboxField, g as ComponentConfig, h as ComponentConfigExtensions, i as ComponentConfigParams, k as ComponentDataMap, l as ComponentDataOptionalId, m as ComponentMetadata, o as ConfigParams, p as Content, q as CustomField, r as CustomFieldRender, s as DefaultComponentProps, t as DefaultComponents, u as DefaultRootFieldProps, v as DefaultRootProps, w as DefaultRootRenderProps, x as Direction, y as DndBehavior, E as DragAxis, G as ExternalField, H as ExternalFieldWithAdaptor, I as ExtractConfigParams, J as ExtractField, M as FieldMetadata, O as FieldRenderFunctions, P as FieldTransformFn, Q as FieldTransformFnParams, S as Fields, T as History, X as ItemWithId, Y as MappedItem, _ as NumberField, $ as ObjectField, a1 as OverrideKey, a8 as PuckComponent, a9 as PuckContext, aa as PuckMetadata, ab as RadioField, ad as RichText, ae as RichtextField, af as RootConfig, ag as RootData, ah as RootDataWithProps, ai as RootDataWithoutProps, aj as SelectField, ak as Slot, al as SlotComponent, am as SlotField, an as TextField, ao as TextareaField, ar as Viewport, at as WithChildren, au as WithDefaultRootFieldProps, av as WithId, aw as WithPuckProps, ax as WithSlotProps, ay as overrideKeys } from './actions-Dgllwd-W.mjs';
3
+ import { D as Dictionary, A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-D0qqZNSQ.mjs';
4
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BA4pi921.mjs';
5
5
  import * as react from 'react';
6
6
  import react__default, { ReactNode, SyntheticEvent, ReactElement, ElementType, Ref, CSSProperties } from 'react';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -40,6 +40,10 @@ declare const ActionBar: {
40
40
  children: ReactNode;
41
41
  }) => react_jsx_runtime.JSX.Element;
42
42
  Separator: () => react_jsx_runtime.JSX.Element;
43
+ DragHandle: react.ForwardRefExoticComponent<{
44
+ label?: string;
45
+ disabled?: boolean;
46
+ } & react.RefAttributes<HTMLButtonElement>>;
43
47
  };
44
48
  declare const Action: react.ForwardRefExoticComponent<{
45
49
  children: ReactNode;
@@ -48,6 +52,10 @@ declare const Action: react.ForwardRefExoticComponent<{
48
52
  active?: boolean;
49
53
  disabled?: boolean;
50
54
  } & react.RefAttributes<HTMLButtonElement>>;
55
+ declare const DragHandle: react.ForwardRefExoticComponent<{
56
+ label?: string;
57
+ disabled?: boolean;
58
+ } & react.RefAttributes<HTMLButtonElement>>;
51
59
  declare const Group: ({ children }: {
52
60
  children: ReactNode;
53
61
  }) => react_jsx_runtime.JSX.Element;
@@ -56,9 +64,10 @@ declare const Label: ({ label }: {
56
64
  }) => react_jsx_runtime.JSX.Element;
57
65
  declare const Separator: () => react_jsx_runtime.JSX.Element;
58
66
 
59
- declare const FieldLabel: ({ children, icon, label, el, readOnly, className, }: {
67
+ declare const FieldLabel: ({ children, icon, endIcon, label, el, readOnly, className, }: {
60
68
  children?: ReactNode;
61
69
  icon?: ReactNode;
70
+ endIcon?: ReactNode;
62
71
  label: string;
63
72
  el?: "label" | "div";
64
73
  readOnly?: boolean;
@@ -70,6 +79,50 @@ declare function AutoField<ValueType = any, FieldType extends FieldNoLabel<Value
70
79
  value: any;
71
80
  }): react_jsx_runtime.JSX.Element | null;
72
81
 
82
+ type NonCollapsibleFieldGroupProps = {
83
+ collapsible: false;
84
+ label?: string;
85
+ };
86
+ type CollapsibleFieldGroupProps = {
87
+ collapsible?: true;
88
+ label: string;
89
+ };
90
+ type FieldGroupProps = {
91
+ variant?: FieldGroupVariant;
92
+ icon?: ReactNode;
93
+ children?: ReactNode;
94
+ id?: string;
95
+ defaultExpanded?: boolean;
96
+ } & (NonCollapsibleFieldGroupProps | CollapsibleFieldGroupProps);
97
+ /** Renders a group of related fields under a common label and layout */
98
+ declare const FieldGroup: {
99
+ ({ collapsible, ...props }: FieldGroupProps): react_jsx_runtime.JSX.Element;
100
+ /**
101
+ * Renders an individual item within a FieldGroup.
102
+ *
103
+ * Wrap any subfields in this component for a consistent layout
104
+ */
105
+ Item: (props: FieldGroupItemProps) => react_jsx_runtime.JSX.Element;
106
+ };
107
+ type FieldGroupItemProps = {
108
+ children: ReactNode;
109
+ className?: string;
110
+ };
111
+
112
+ type TabValue = string | number;
113
+ type TabProps = {
114
+ /** The label to show for the tab in the tab list */
115
+ label: string;
116
+ /** The value associated with the tab to select it. Defaults to the label if not provided. */
117
+ value?: TabValue;
118
+ /** The content to show when the tab is selected */
119
+ children?: ReactNode;
120
+ };
121
+ /**
122
+ * Groups fields in a tab.
123
+ */
124
+ declare const Tab: ({ label, value, children }: TabProps) => react_jsx_runtime.JSX.Element;
125
+
73
126
  declare const Button: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, icon, size, loading: loadingProp, ...props }: {
74
127
  children: ReactNode;
75
128
  href?: string;
@@ -122,7 +175,8 @@ declare const IconButton: react.ForwardRefExoticComponent<{
122
175
  suppressHydrationWarning?: boolean;
123
176
  } & react.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
124
177
 
125
- declare const InlineTextField: react.MemoExoticComponent<({ propPath, componentId, value, isReadOnly, opts, }: {
178
+ declare const InlineTextField: react.MemoExoticComponent<({ placeholder, propPath, componentId, value, isReadOnly, opts, }: {
179
+ placeholder?: string;
126
180
  propPath: string;
127
181
  value: string | null | undefined;
128
182
  componentId: string;
@@ -184,11 +238,13 @@ declare const renderContext: react__default.Context<{
184
238
  config: Config;
185
239
  data: Data;
186
240
  metadata: Metadata;
241
+ fieldTransforms?: FieldTransforms;
187
242
  }>;
188
- declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
243
+ declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, fieldTransforms: userFieldTransforms, }: {
189
244
  config: UserConfig;
190
245
  data: Partial<G["UserData"] | Data>;
191
246
  metadata?: Metadata;
247
+ fieldTransforms?: FieldTransforms<UserConfig>;
192
248
  }): react_jsx_runtime.JSX.Element;
193
249
 
194
250
  declare function AlignLeft(): react_jsx_runtime.JSX.Element;
@@ -336,4 +392,4 @@ declare const legacySideBarPlugin: (props?: {
336
392
  componentsLabel?: string;
337
393
  }) => Plugin;
338
394
 
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 };
395
+ export { Action, ActionBar, AutoField, type BlocksPluginProps, Button, ComponentData, Config, Data, Dictionary, DndConfig, DragHandle, Drawer, DropZone, Field, FieldGroup, FieldGroupVariant, FieldLabel, FieldProps, Tab as FieldTab, 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,7 +1,7 @@
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';
1
+ import { K as Field, N as FieldProps, L as FieldGroupVariant, F as DropZoneProps, n as Config, aq as UserGenerics, D as Data, ap as UiState, a0 as OnAction, a3 as Permissions, a4 as Plugin, a2 as Overrides, R as FieldTransforms, a7 as PuckAction, as as Viewports, U as IframeConfig, z as DndConfig, V as InitialHistory, Z as Metadata, ac as ResolveDataTrigger, W as ItemSelector, j as ComponentData, a5 as PluginInternal } from './actions-Dgllwd-W.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 CheckboxField, g as ComponentConfig, h as ComponentConfigExtensions, i as ComponentConfigParams, k as ComponentDataMap, l as ComponentDataOptionalId, m as ComponentMetadata, o as ConfigParams, p as Content, q as CustomField, r as CustomFieldRender, s as DefaultComponentProps, t as DefaultComponents, u as DefaultRootFieldProps, v as DefaultRootProps, w as DefaultRootRenderProps, x as Direction, y as DndBehavior, E as DragAxis, G as ExternalField, H as ExternalFieldWithAdaptor, I as ExtractConfigParams, J as ExtractField, M as FieldMetadata, O as FieldRenderFunctions, P as FieldTransformFn, Q as FieldTransformFnParams, S as Fields, T as History, X as ItemWithId, Y as MappedItem, _ as NumberField, $ as ObjectField, a1 as OverrideKey, a8 as PuckComponent, a9 as PuckContext, aa as PuckMetadata, ab as RadioField, ad as RichText, ae as RichtextField, af as RootConfig, ag as RootData, ah as RootDataWithProps, ai as RootDataWithoutProps, aj as SelectField, ak as Slot, al as SlotComponent, am as SlotField, an as TextField, ao as TextareaField, ar as Viewport, at as WithChildren, au as WithDefaultRootFieldProps, av as WithId, aw as WithPuckProps, ax as WithSlotProps, ay as overrideKeys } from './actions-Dgllwd-W.js';
3
+ import { D as Dictionary, A as AppStore, G as GetPermissions, R as RefreshPermissions, H as HistorySlice } from './index-dKPCNzR1.js';
4
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-zKkZGcaE.js';
5
5
  import * as react from 'react';
6
6
  import react__default, { ReactNode, SyntheticEvent, ReactElement, ElementType, Ref, CSSProperties } from 'react';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -40,6 +40,10 @@ declare const ActionBar: {
40
40
  children: ReactNode;
41
41
  }) => react_jsx_runtime.JSX.Element;
42
42
  Separator: () => react_jsx_runtime.JSX.Element;
43
+ DragHandle: react.ForwardRefExoticComponent<{
44
+ label?: string;
45
+ disabled?: boolean;
46
+ } & react.RefAttributes<HTMLButtonElement>>;
43
47
  };
44
48
  declare const Action: react.ForwardRefExoticComponent<{
45
49
  children: ReactNode;
@@ -48,6 +52,10 @@ declare const Action: react.ForwardRefExoticComponent<{
48
52
  active?: boolean;
49
53
  disabled?: boolean;
50
54
  } & react.RefAttributes<HTMLButtonElement>>;
55
+ declare const DragHandle: react.ForwardRefExoticComponent<{
56
+ label?: string;
57
+ disabled?: boolean;
58
+ } & react.RefAttributes<HTMLButtonElement>>;
51
59
  declare const Group: ({ children }: {
52
60
  children: ReactNode;
53
61
  }) => react_jsx_runtime.JSX.Element;
@@ -56,9 +64,10 @@ declare const Label: ({ label }: {
56
64
  }) => react_jsx_runtime.JSX.Element;
57
65
  declare const Separator: () => react_jsx_runtime.JSX.Element;
58
66
 
59
- declare const FieldLabel: ({ children, icon, label, el, readOnly, className, }: {
67
+ declare const FieldLabel: ({ children, icon, endIcon, label, el, readOnly, className, }: {
60
68
  children?: ReactNode;
61
69
  icon?: ReactNode;
70
+ endIcon?: ReactNode;
62
71
  label: string;
63
72
  el?: "label" | "div";
64
73
  readOnly?: boolean;
@@ -70,6 +79,50 @@ declare function AutoField<ValueType = any, FieldType extends FieldNoLabel<Value
70
79
  value: any;
71
80
  }): react_jsx_runtime.JSX.Element | null;
72
81
 
82
+ type NonCollapsibleFieldGroupProps = {
83
+ collapsible: false;
84
+ label?: string;
85
+ };
86
+ type CollapsibleFieldGroupProps = {
87
+ collapsible?: true;
88
+ label: string;
89
+ };
90
+ type FieldGroupProps = {
91
+ variant?: FieldGroupVariant;
92
+ icon?: ReactNode;
93
+ children?: ReactNode;
94
+ id?: string;
95
+ defaultExpanded?: boolean;
96
+ } & (NonCollapsibleFieldGroupProps | CollapsibleFieldGroupProps);
97
+ /** Renders a group of related fields under a common label and layout */
98
+ declare const FieldGroup: {
99
+ ({ collapsible, ...props }: FieldGroupProps): react_jsx_runtime.JSX.Element;
100
+ /**
101
+ * Renders an individual item within a FieldGroup.
102
+ *
103
+ * Wrap any subfields in this component for a consistent layout
104
+ */
105
+ Item: (props: FieldGroupItemProps) => react_jsx_runtime.JSX.Element;
106
+ };
107
+ type FieldGroupItemProps = {
108
+ children: ReactNode;
109
+ className?: string;
110
+ };
111
+
112
+ type TabValue = string | number;
113
+ type TabProps = {
114
+ /** The label to show for the tab in the tab list */
115
+ label: string;
116
+ /** The value associated with the tab to select it. Defaults to the label if not provided. */
117
+ value?: TabValue;
118
+ /** The content to show when the tab is selected */
119
+ children?: ReactNode;
120
+ };
121
+ /**
122
+ * Groups fields in a tab.
123
+ */
124
+ declare const Tab: ({ label, value, children }: TabProps) => react_jsx_runtime.JSX.Element;
125
+
73
126
  declare const Button: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, icon, size, loading: loadingProp, ...props }: {
74
127
  children: ReactNode;
75
128
  href?: string;
@@ -122,7 +175,8 @@ declare const IconButton: react.ForwardRefExoticComponent<{
122
175
  suppressHydrationWarning?: boolean;
123
176
  } & react.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
124
177
 
125
- declare const InlineTextField: react.MemoExoticComponent<({ propPath, componentId, value, isReadOnly, opts, }: {
178
+ declare const InlineTextField: react.MemoExoticComponent<({ placeholder, propPath, componentId, value, isReadOnly, opts, }: {
179
+ placeholder?: string;
126
180
  propPath: string;
127
181
  value: string | null | undefined;
128
182
  componentId: string;
@@ -184,11 +238,13 @@ declare const renderContext: react__default.Context<{
184
238
  config: Config;
185
239
  data: Data;
186
240
  metadata: Metadata;
241
+ fieldTransforms?: FieldTransforms;
187
242
  }>;
188
- declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
243
+ declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, fieldTransforms: userFieldTransforms, }: {
189
244
  config: UserConfig;
190
245
  data: Partial<G["UserData"] | Data>;
191
246
  metadata?: Metadata;
247
+ fieldTransforms?: FieldTransforms<UserConfig>;
192
248
  }): react_jsx_runtime.JSX.Element;
193
249
 
194
250
  declare function AlignLeft(): react_jsx_runtime.JSX.Element;
@@ -336,4 +392,4 @@ declare const legacySideBarPlugin: (props?: {
336
392
  componentsLabel?: string;
337
393
  }) => Plugin;
338
394
 
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 };
395
+ export { Action, ActionBar, AutoField, type BlocksPluginProps, Button, ComponentData, Config, Data, Dictionary, DndConfig, DragHandle, Drawer, DropZone, Field, FieldGroup, FieldGroupVariant, FieldLabel, FieldProps, Tab as FieldTab, 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 };