@measured/puck 0.21.0-canary.16a3eee1 → 0.21.0-canary.1d823fd9
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.
- package/dist/{chunk-X7YZ3YE7.mjs → chunk-MHKBV5D3.mjs} +577 -58
- package/dist/{chunk-JZ2BPCUI.mjs → chunk-SWIW6GHU.mjs} +2735 -2895
- package/dist/index.css +653 -273
- package/dist/index.d.mts +16 -109
- package/dist/index.d.ts +16 -109
- package/dist/index.js +2302 -1967
- package/dist/index.mjs +10 -2
- package/dist/no-external.css +653 -273
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +2299 -1964
- package/dist/no-external.mjs +10 -2
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +487 -10
- package/dist/rsc.mjs +3 -1
- package/dist/{walk-tree-Ctf3FZQI.d.mts → walk-tree-CegGHme5.d.mts} +189 -51
- package/dist/{walk-tree-Ctf3FZQI.d.ts → walk-tree-CegGHme5.d.ts} +189 -51
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,112 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { F as Field, a as FieldProps, D as DropZoneProps, C as Config, U as UserGenerics, b as Data, d as UiState, O as OnAction, P as Permissions, e as Plugin, f as Overrides, g as FieldTransforms, h as PuckAction, V as Viewports, I as IframeConfig, i as InitialHistory, M as Metadata, A as AppStore, G as GetPermissions, R as RefreshPermissions, j as ItemSelector, H as HistorySlice, k as PluginInternal } from './walk-tree-CegGHme5.mjs';
|
|
2
|
+
export { ai as Adaptor, B as AppState, ag as ArrayField, z as ArrayState, ax as AsFieldProps, _ as BaseData, aa as BaseField, ak as CacheOpts, N as ComponentConfig, L as ComponentConfigExtensions, Z as ComponentConfigParams, a2 as ComponentData, a5 as ComponentDataMap, a3 as ComponentDataOptionalId, a8 as ComponentMetadata, Y as ConfigParams, a6 as Content, an as CustomField, am as CustomFieldRender, au as DefaultComponentProps, T as DefaultComponents, ar as DefaultRootFieldProps, at as DefaultRootProps, as as DefaultRootRenderProps, n as Direction, o as DragAxis, al as ExternalField, aj as ExternalFieldWithAdaptor, X as ExtractConfigParams, az as ExtractField, a9 as FieldMetadata, x as FieldRenderFunctions, s as FieldTransformFn, q as FieldTransformFnParams, ap as Fields, l as History, y as ItemWithId, a4 as MappedItem, ac as NumberField, ah as ObjectField, v as OverrideKey, J as PuckComponent, aq as PuckContext, a7 as PuckMetadata, af as RadioField, K as ResolveDataTrigger, Q as RootConfig, a1 as RootData, $ as RootDataWithProps, a0 as RootDataWithoutProps, ae as SelectField, S as Slot, E as SlotComponent, ao as SlotField, ab as TextField, ad as TextareaField, p as Viewport, ay as WithChildren, av as WithId, aw as WithPuckProps, W as WithSlotProps, c as createReducer, m as migrate, u as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CegGHme5.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
|
-
import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
|
|
6
|
-
|
|
7
|
-
type HistorySlice<D = any> = {
|
|
8
|
-
index: number;
|
|
9
|
-
hasPast: () => boolean;
|
|
10
|
-
hasFuture: () => boolean;
|
|
11
|
-
histories: History<D>[];
|
|
12
|
-
record: (data: D) => void;
|
|
13
|
-
back: VoidFunction;
|
|
14
|
-
forward: VoidFunction;
|
|
15
|
-
currentHistory: () => History;
|
|
16
|
-
nextHistory: () => History<D> | null;
|
|
17
|
-
prevHistory: () => History<D> | null;
|
|
18
|
-
setHistories: (histories: History[]) => void;
|
|
19
|
-
setHistoryIndex: (index: number) => void;
|
|
20
|
-
initialAppState: D;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
type NodeMethods = {
|
|
24
|
-
sync: () => void;
|
|
25
|
-
hideOverlay: () => void;
|
|
26
|
-
showOverlay: () => void;
|
|
27
|
-
};
|
|
28
|
-
type PuckNodeInstance = {
|
|
29
|
-
id: string;
|
|
30
|
-
methods: NodeMethods;
|
|
31
|
-
element: HTMLElement | null;
|
|
32
|
-
};
|
|
33
|
-
type NodesSlice = {
|
|
34
|
-
nodes: Record<string, PuckNodeInstance | undefined>;
|
|
35
|
-
registerNode: (id: string, node: Partial<PuckNodeInstance>) => void;
|
|
36
|
-
unregisterNode: (id: string, node?: Partial<PuckNodeInstance>) => void;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
type PermissionsArgs<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
40
|
-
item?: G["UserComponentData"] | null;
|
|
41
|
-
type?: keyof G["UserProps"];
|
|
42
|
-
root?: boolean;
|
|
43
|
-
};
|
|
44
|
-
type GetPermissions<UserConfig extends Config = Config> = (params?: PermissionsArgs<UserConfig>) => Permissions;
|
|
45
|
-
type ResolvePermissions<UserConfig extends Config = Config> = (params?: PermissionsArgs<UserConfig>, force?: boolean) => void;
|
|
46
|
-
type RefreshPermissions<UserConfig extends Config = Config> = (params?: PermissionsArgs<UserConfig>, force?: boolean) => void;
|
|
47
|
-
type Cache = Record<string, {
|
|
48
|
-
lastPermissions: Partial<Permissions>;
|
|
49
|
-
lastData: ComponentData | null;
|
|
50
|
-
}>;
|
|
51
|
-
type PermissionsSlice = {
|
|
52
|
-
cache: Cache;
|
|
53
|
-
globalPermissions: Permissions;
|
|
54
|
-
resolvedPermissions: Record<string, Partial<Permissions> | undefined>;
|
|
55
|
-
getPermissions: GetPermissions<Config>;
|
|
56
|
-
resolvePermissions: ResolvePermissions<Config>;
|
|
57
|
-
refreshPermissions: RefreshPermissions<Config>;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
type ComponentOrRootData = Omit<ComponentData<any>, "type">;
|
|
61
|
-
type FieldsSlice = {
|
|
62
|
-
fields: Fields | Partial<Fields>;
|
|
63
|
-
loading: boolean;
|
|
64
|
-
lastResolvedData: Partial<ComponentOrRootData>;
|
|
65
|
-
id: string | undefined;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
type Status = "LOADING" | "MOUNTED" | "READY";
|
|
69
|
-
type ZoomConfig = {
|
|
70
|
-
autoZoom: number;
|
|
71
|
-
rootHeight: number;
|
|
72
|
-
zoom: number;
|
|
73
|
-
};
|
|
74
|
-
type ComponentState = Record<string, {
|
|
75
|
-
loadingCount: number;
|
|
76
|
-
}>;
|
|
77
|
-
type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
78
|
-
state: G["UserAppState"];
|
|
79
|
-
dispatch: (action: PuckAction) => void;
|
|
80
|
-
config: UserConfig;
|
|
81
|
-
componentState: ComponentState;
|
|
82
|
-
setComponentState: (componentState: ComponentState) => void;
|
|
83
|
-
setComponentLoading: (id: string, loading?: boolean, defer?: number) => () => void;
|
|
84
|
-
unsetComponentLoading: (id: string) => void;
|
|
85
|
-
pendingLoadTimeouts: Record<string, NodeJS.Timeout>;
|
|
86
|
-
resolveComponentData: <T extends ComponentData | RootDataWithProps>(componentData: T, trigger: ResolveDataTrigger) => Promise<{
|
|
87
|
-
node: T;
|
|
88
|
-
didChange: boolean;
|
|
89
|
-
}>;
|
|
90
|
-
resolveAndCommitData: () => void;
|
|
91
|
-
plugins: Plugin[];
|
|
92
|
-
overrides: Partial<Overrides>;
|
|
93
|
-
viewports: Viewports;
|
|
94
|
-
zoomConfig: ZoomConfig;
|
|
95
|
-
setZoomConfig: (zoomConfig: ZoomConfig) => void;
|
|
96
|
-
status: Status;
|
|
97
|
-
setStatus: (status: Status) => void;
|
|
98
|
-
iframe: IframeConfig;
|
|
99
|
-
selectedItem?: G["UserData"]["content"][0] | null;
|
|
100
|
-
setUi: (ui: Partial<UiState>, recordHistory?: boolean) => void;
|
|
101
|
-
getComponentConfig: (type?: string) => ComponentConfig | null | undefined;
|
|
102
|
-
onAction?: (action: PuckAction, newState: AppState, state: AppState) => void;
|
|
103
|
-
metadata: Metadata;
|
|
104
|
-
fields: FieldsSlice;
|
|
105
|
-
history: HistorySlice;
|
|
106
|
-
nodes: NodesSlice;
|
|
107
|
-
permissions: PermissionsSlice;
|
|
108
|
-
fieldTransforms: FieldTransforms;
|
|
109
|
-
};
|
|
5
|
+
import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
|
|
110
6
|
|
|
111
7
|
declare const ActionBar: {
|
|
112
8
|
({ label, children, }: {
|
|
@@ -184,7 +80,7 @@ declare const Drawer: {
|
|
|
184
80
|
|
|
185
81
|
declare const DropZone: react.ForwardRefExoticComponent<DropZoneProps & react.RefAttributes<HTMLDivElement>>;
|
|
186
82
|
|
|
187
|
-
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title, }: {
|
|
83
|
+
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title, suppressHydrationWarning, }: {
|
|
188
84
|
children: ReactNode;
|
|
189
85
|
href?: string;
|
|
190
86
|
onClick?: (e: SyntheticEvent) => void | Promise<void>;
|
|
@@ -195,6 +91,7 @@ declare const IconButton: ({ children, href, onClick, variant, type, disabled, t
|
|
|
195
91
|
newTab?: boolean;
|
|
196
92
|
fullWidth?: boolean;
|
|
197
93
|
title: string;
|
|
94
|
+
suppressHydrationWarning?: boolean;
|
|
198
95
|
}) => react_jsx_runtime.JSX.Element;
|
|
199
96
|
|
|
200
97
|
type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
@@ -227,6 +124,8 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
|
|
|
227
124
|
};
|
|
228
125
|
initialHistory?: InitialHistory;
|
|
229
126
|
metadata?: Metadata;
|
|
127
|
+
height?: CSSProperties["height"];
|
|
128
|
+
_experimentalFullScreenCanvas?: boolean;
|
|
230
129
|
};
|
|
231
130
|
declare function Puck<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>(props: PuckProps<UserConfig>): react_jsx_runtime.JSX.Element;
|
|
232
131
|
declare namespace Puck {
|
|
@@ -302,4 +201,12 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
302
201
|
*/
|
|
303
202
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
304
203
|
|
|
305
|
-
|
|
204
|
+
declare const blocksPlugin: () => Plugin;
|
|
205
|
+
|
|
206
|
+
declare const fieldsPlugin: (params?: {
|
|
207
|
+
mobileOnly?: boolean;
|
|
208
|
+
}) => PluginInternal;
|
|
209
|
+
|
|
210
|
+
declare const outlinePlugin: () => Plugin;
|
|
211
|
+
|
|
212
|
+
export { Action, ActionBar, AutoField, Button, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Group, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,112 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { F as Field, a as FieldProps, D as DropZoneProps, C as Config, U as UserGenerics, b as Data, d as UiState, O as OnAction, P as Permissions, e as Plugin, f as Overrides, g as FieldTransforms, h as PuckAction, V as Viewports, I as IframeConfig, i as InitialHistory, M as Metadata, A as AppStore, G as GetPermissions, R as RefreshPermissions, j as ItemSelector, H as HistorySlice, k as PluginInternal } from './walk-tree-CegGHme5.js';
|
|
2
|
+
export { ai as Adaptor, B as AppState, ag as ArrayField, z as ArrayState, ax as AsFieldProps, _ as BaseData, aa as BaseField, ak as CacheOpts, N as ComponentConfig, L as ComponentConfigExtensions, Z as ComponentConfigParams, a2 as ComponentData, a5 as ComponentDataMap, a3 as ComponentDataOptionalId, a8 as ComponentMetadata, Y as ConfigParams, a6 as Content, an as CustomField, am as CustomFieldRender, au as DefaultComponentProps, T as DefaultComponents, ar as DefaultRootFieldProps, at as DefaultRootProps, as as DefaultRootRenderProps, n as Direction, o as DragAxis, al as ExternalField, aj as ExternalFieldWithAdaptor, X as ExtractConfigParams, az as ExtractField, a9 as FieldMetadata, x as FieldRenderFunctions, s as FieldTransformFn, q as FieldTransformFnParams, ap as Fields, l as History, y as ItemWithId, a4 as MappedItem, ac as NumberField, ah as ObjectField, v as OverrideKey, J as PuckComponent, aq as PuckContext, a7 as PuckMetadata, af as RadioField, K as ResolveDataTrigger, Q as RootConfig, a1 as RootData, $ as RootDataWithProps, a0 as RootDataWithoutProps, ae as SelectField, S as Slot, E as SlotComponent, ao as SlotField, ab as TextField, ad as TextareaField, p as Viewport, ay as WithChildren, av as WithId, aw as WithPuckProps, W as WithSlotProps, c as createReducer, m as migrate, u as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CegGHme5.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
|
-
import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
|
|
6
|
-
|
|
7
|
-
type HistorySlice<D = any> = {
|
|
8
|
-
index: number;
|
|
9
|
-
hasPast: () => boolean;
|
|
10
|
-
hasFuture: () => boolean;
|
|
11
|
-
histories: History<D>[];
|
|
12
|
-
record: (data: D) => void;
|
|
13
|
-
back: VoidFunction;
|
|
14
|
-
forward: VoidFunction;
|
|
15
|
-
currentHistory: () => History;
|
|
16
|
-
nextHistory: () => History<D> | null;
|
|
17
|
-
prevHistory: () => History<D> | null;
|
|
18
|
-
setHistories: (histories: History[]) => void;
|
|
19
|
-
setHistoryIndex: (index: number) => void;
|
|
20
|
-
initialAppState: D;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
type NodeMethods = {
|
|
24
|
-
sync: () => void;
|
|
25
|
-
hideOverlay: () => void;
|
|
26
|
-
showOverlay: () => void;
|
|
27
|
-
};
|
|
28
|
-
type PuckNodeInstance = {
|
|
29
|
-
id: string;
|
|
30
|
-
methods: NodeMethods;
|
|
31
|
-
element: HTMLElement | null;
|
|
32
|
-
};
|
|
33
|
-
type NodesSlice = {
|
|
34
|
-
nodes: Record<string, PuckNodeInstance | undefined>;
|
|
35
|
-
registerNode: (id: string, node: Partial<PuckNodeInstance>) => void;
|
|
36
|
-
unregisterNode: (id: string, node?: Partial<PuckNodeInstance>) => void;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
type PermissionsArgs<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
40
|
-
item?: G["UserComponentData"] | null;
|
|
41
|
-
type?: keyof G["UserProps"];
|
|
42
|
-
root?: boolean;
|
|
43
|
-
};
|
|
44
|
-
type GetPermissions<UserConfig extends Config = Config> = (params?: PermissionsArgs<UserConfig>) => Permissions;
|
|
45
|
-
type ResolvePermissions<UserConfig extends Config = Config> = (params?: PermissionsArgs<UserConfig>, force?: boolean) => void;
|
|
46
|
-
type RefreshPermissions<UserConfig extends Config = Config> = (params?: PermissionsArgs<UserConfig>, force?: boolean) => void;
|
|
47
|
-
type Cache = Record<string, {
|
|
48
|
-
lastPermissions: Partial<Permissions>;
|
|
49
|
-
lastData: ComponentData | null;
|
|
50
|
-
}>;
|
|
51
|
-
type PermissionsSlice = {
|
|
52
|
-
cache: Cache;
|
|
53
|
-
globalPermissions: Permissions;
|
|
54
|
-
resolvedPermissions: Record<string, Partial<Permissions> | undefined>;
|
|
55
|
-
getPermissions: GetPermissions<Config>;
|
|
56
|
-
resolvePermissions: ResolvePermissions<Config>;
|
|
57
|
-
refreshPermissions: RefreshPermissions<Config>;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
type ComponentOrRootData = Omit<ComponentData<any>, "type">;
|
|
61
|
-
type FieldsSlice = {
|
|
62
|
-
fields: Fields | Partial<Fields>;
|
|
63
|
-
loading: boolean;
|
|
64
|
-
lastResolvedData: Partial<ComponentOrRootData>;
|
|
65
|
-
id: string | undefined;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
type Status = "LOADING" | "MOUNTED" | "READY";
|
|
69
|
-
type ZoomConfig = {
|
|
70
|
-
autoZoom: number;
|
|
71
|
-
rootHeight: number;
|
|
72
|
-
zoom: number;
|
|
73
|
-
};
|
|
74
|
-
type ComponentState = Record<string, {
|
|
75
|
-
loadingCount: number;
|
|
76
|
-
}>;
|
|
77
|
-
type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
78
|
-
state: G["UserAppState"];
|
|
79
|
-
dispatch: (action: PuckAction) => void;
|
|
80
|
-
config: UserConfig;
|
|
81
|
-
componentState: ComponentState;
|
|
82
|
-
setComponentState: (componentState: ComponentState) => void;
|
|
83
|
-
setComponentLoading: (id: string, loading?: boolean, defer?: number) => () => void;
|
|
84
|
-
unsetComponentLoading: (id: string) => void;
|
|
85
|
-
pendingLoadTimeouts: Record<string, NodeJS.Timeout>;
|
|
86
|
-
resolveComponentData: <T extends ComponentData | RootDataWithProps>(componentData: T, trigger: ResolveDataTrigger) => Promise<{
|
|
87
|
-
node: T;
|
|
88
|
-
didChange: boolean;
|
|
89
|
-
}>;
|
|
90
|
-
resolveAndCommitData: () => void;
|
|
91
|
-
plugins: Plugin[];
|
|
92
|
-
overrides: Partial<Overrides>;
|
|
93
|
-
viewports: Viewports;
|
|
94
|
-
zoomConfig: ZoomConfig;
|
|
95
|
-
setZoomConfig: (zoomConfig: ZoomConfig) => void;
|
|
96
|
-
status: Status;
|
|
97
|
-
setStatus: (status: Status) => void;
|
|
98
|
-
iframe: IframeConfig;
|
|
99
|
-
selectedItem?: G["UserData"]["content"][0] | null;
|
|
100
|
-
setUi: (ui: Partial<UiState>, recordHistory?: boolean) => void;
|
|
101
|
-
getComponentConfig: (type?: string) => ComponentConfig | null | undefined;
|
|
102
|
-
onAction?: (action: PuckAction, newState: AppState, state: AppState) => void;
|
|
103
|
-
metadata: Metadata;
|
|
104
|
-
fields: FieldsSlice;
|
|
105
|
-
history: HistorySlice;
|
|
106
|
-
nodes: NodesSlice;
|
|
107
|
-
permissions: PermissionsSlice;
|
|
108
|
-
fieldTransforms: FieldTransforms;
|
|
109
|
-
};
|
|
5
|
+
import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
|
|
110
6
|
|
|
111
7
|
declare const ActionBar: {
|
|
112
8
|
({ label, children, }: {
|
|
@@ -184,7 +80,7 @@ declare const Drawer: {
|
|
|
184
80
|
|
|
185
81
|
declare const DropZone: react.ForwardRefExoticComponent<DropZoneProps & react.RefAttributes<HTMLDivElement>>;
|
|
186
82
|
|
|
187
|
-
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title, }: {
|
|
83
|
+
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title, suppressHydrationWarning, }: {
|
|
188
84
|
children: ReactNode;
|
|
189
85
|
href?: string;
|
|
190
86
|
onClick?: (e: SyntheticEvent) => void | Promise<void>;
|
|
@@ -195,6 +91,7 @@ declare const IconButton: ({ children, href, onClick, variant, type, disabled, t
|
|
|
195
91
|
newTab?: boolean;
|
|
196
92
|
fullWidth?: boolean;
|
|
197
93
|
title: string;
|
|
94
|
+
suppressHydrationWarning?: boolean;
|
|
198
95
|
}) => react_jsx_runtime.JSX.Element;
|
|
199
96
|
|
|
200
97
|
type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
@@ -227,6 +124,8 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
|
|
|
227
124
|
};
|
|
228
125
|
initialHistory?: InitialHistory;
|
|
229
126
|
metadata?: Metadata;
|
|
127
|
+
height?: CSSProperties["height"];
|
|
128
|
+
_experimentalFullScreenCanvas?: boolean;
|
|
230
129
|
};
|
|
231
130
|
declare function Puck<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>(props: PuckProps<UserConfig>): react_jsx_runtime.JSX.Element;
|
|
232
131
|
declare namespace Puck {
|
|
@@ -302,4 +201,12 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
302
201
|
*/
|
|
303
202
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
304
203
|
|
|
305
|
-
|
|
204
|
+
declare const blocksPlugin: () => Plugin;
|
|
205
|
+
|
|
206
|
+
declare const fieldsPlugin: (params?: {
|
|
207
|
+
mobileOnly?: boolean;
|
|
208
|
+
}) => PluginInternal;
|
|
209
|
+
|
|
210
|
+
declare const outlinePlugin: () => Plugin;
|
|
211
|
+
|
|
212
|
+
export { Action, ActionBar, AutoField, Button, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Group, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|