@measured/puck 0.21.0-canary.74d9a160 → 0.21.0-canary.7dca3a5a
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-VBJEDLUM.mjs → chunk-6SIKCDJJ.mjs} +4 -2
- package/dist/{chunk-EXX4ZSCK.mjs → chunk-FKDVYRQW.mjs} +2198 -1776
- package/dist/index.css +650 -272
- package/dist/index.d.mts +17 -5
- package/dist/index.d.ts +17 -5
- package/dist/index.js +1670 -1247
- package/dist/index.mjs +8 -2
- package/dist/no-external.css +650 -272
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +1670 -1247
- package/dist/no-external.mjs +8 -2
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +4 -2
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-DkTSFbz_.d.mts → walk-tree-DS1xB387.d.mts} +70 -50
- package/dist/{walk-tree-DkTSFbz_.d.ts → walk-tree-DS1xB387.d.ts} +70 -50
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector } from './walk-tree-
|
|
2
|
-
export {
|
|
1
|
+
import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector, o as PluginInternal } from './walk-tree-DS1xB387.mjs';
|
|
2
|
+
export { ae as Adaptor, ac as ArrayField, E as ArrayState, as as AsFieldProps, Y as BaseData, a6 as BaseField, ag as CacheOpts, K as ComponentConfigExtensions, X as ComponentConfigParams, a1 as ComponentDataMap, $ as ComponentDataOptionalId, a4 as ComponentMetadata, T as ConfigParams, a2 as Content, aj as CustomField, ai as CustomFieldRender, ap as DefaultComponentProps, N as DefaultComponents, am as DefaultRootFieldProps, ao as DefaultRootProps, an as DefaultRootRenderProps, p as Direction, q as DragAxis, ah as ExternalField, af as ExternalFieldWithAdaptor, Q as ExtractConfigParams, au as ExtractField, a5 as FieldMetadata, z as FieldRenderFunctions, v as FieldTransformFn, u as FieldTransformFnParams, B as ItemWithId, a0 as MappedItem, a8 as NumberField, ad as ObjectField, y as OverrideKey, J as PuckComponent, al as PuckContext, a3 as PuckMetadata, ab as RadioField, L as RootConfig, _ as RootData, Z as RootDataWithoutProps, aa as SelectField, S as Slot, G as SlotComponent, ak as SlotField, a7 as TextField, a9 as TextareaField, s as Viewport, at as WithChildren, aq as WithId, ar as WithPuckProps, W as WithSlotProps, m as migrate, x as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-DS1xB387.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';
|
|
5
|
+
import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
|
|
6
6
|
|
|
7
7
|
type HistorySlice<D = any> = {
|
|
8
8
|
index: number;
|
|
@@ -75,6 +75,7 @@ type ComponentState = Record<string, {
|
|
|
75
75
|
loadingCount: number;
|
|
76
76
|
}>;
|
|
77
77
|
type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
78
|
+
instanceId: string;
|
|
78
79
|
state: G["UserAppState"];
|
|
79
80
|
dispatch: (action: PuckAction) => void;
|
|
80
81
|
config: UserConfig;
|
|
@@ -184,7 +185,7 @@ declare const Drawer: {
|
|
|
184
185
|
|
|
185
186
|
declare const DropZone: react.ForwardRefExoticComponent<DropZoneProps & react.RefAttributes<HTMLDivElement>>;
|
|
186
187
|
|
|
187
|
-
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title, }: {
|
|
188
|
+
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title, suppressHydrationWarning, }: {
|
|
188
189
|
children: ReactNode;
|
|
189
190
|
href?: string;
|
|
190
191
|
onClick?: (e: SyntheticEvent) => void | Promise<void>;
|
|
@@ -195,6 +196,7 @@ declare const IconButton: ({ children, href, onClick, variant, type, disabled, t
|
|
|
195
196
|
newTab?: boolean;
|
|
196
197
|
fullWidth?: boolean;
|
|
197
198
|
title: string;
|
|
199
|
+
suppressHydrationWarning?: boolean;
|
|
198
200
|
}) => react_jsx_runtime.JSX.Element;
|
|
199
201
|
|
|
200
202
|
type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
@@ -227,6 +229,8 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
|
|
|
227
229
|
};
|
|
228
230
|
initialHistory?: InitialHistory;
|
|
229
231
|
metadata?: Metadata;
|
|
232
|
+
height?: CSSProperties["height"];
|
|
233
|
+
_experimentalFullScreenCanvas?: boolean;
|
|
230
234
|
};
|
|
231
235
|
declare function Puck<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>(props: PuckProps<UserConfig>): react_jsx_runtime.JSX.Element;
|
|
232
236
|
declare namespace Puck {
|
|
@@ -302,4 +306,12 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
302
306
|
*/
|
|
303
307
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
304
308
|
|
|
305
|
-
|
|
309
|
+
declare const blocksPlugin: () => Plugin;
|
|
310
|
+
|
|
311
|
+
declare const fieldsPlugin: (params?: {
|
|
312
|
+
mobileOnly?: boolean;
|
|
313
|
+
}) => PluginInternal;
|
|
314
|
+
|
|
315
|
+
declare const outlinePlugin: () => Plugin;
|
|
316
|
+
|
|
317
|
+
export { Action, ActionBar, AppState, AutoField, Button, ComponentConfig, ComponentData, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Fields, Group, History, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RootDataWithProps, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector } from './walk-tree-
|
|
2
|
-
export {
|
|
1
|
+
import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector, o as PluginInternal } from './walk-tree-DS1xB387.js';
|
|
2
|
+
export { ae as Adaptor, ac as ArrayField, E as ArrayState, as as AsFieldProps, Y as BaseData, a6 as BaseField, ag as CacheOpts, K as ComponentConfigExtensions, X as ComponentConfigParams, a1 as ComponentDataMap, $ as ComponentDataOptionalId, a4 as ComponentMetadata, T as ConfigParams, a2 as Content, aj as CustomField, ai as CustomFieldRender, ap as DefaultComponentProps, N as DefaultComponents, am as DefaultRootFieldProps, ao as DefaultRootProps, an as DefaultRootRenderProps, p as Direction, q as DragAxis, ah as ExternalField, af as ExternalFieldWithAdaptor, Q as ExtractConfigParams, au as ExtractField, a5 as FieldMetadata, z as FieldRenderFunctions, v as FieldTransformFn, u as FieldTransformFnParams, B as ItemWithId, a0 as MappedItem, a8 as NumberField, ad as ObjectField, y as OverrideKey, J as PuckComponent, al as PuckContext, a3 as PuckMetadata, ab as RadioField, L as RootConfig, _ as RootData, Z as RootDataWithoutProps, aa as SelectField, S as Slot, G as SlotComponent, ak as SlotField, a7 as TextField, a9 as TextareaField, s as Viewport, at as WithChildren, aq as WithId, ar as WithPuckProps, W as WithSlotProps, m as migrate, x as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-DS1xB387.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';
|
|
5
|
+
import react__default, { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
|
|
6
6
|
|
|
7
7
|
type HistorySlice<D = any> = {
|
|
8
8
|
index: number;
|
|
@@ -75,6 +75,7 @@ type ComponentState = Record<string, {
|
|
|
75
75
|
loadingCount: number;
|
|
76
76
|
}>;
|
|
77
77
|
type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
78
|
+
instanceId: string;
|
|
78
79
|
state: G["UserAppState"];
|
|
79
80
|
dispatch: (action: PuckAction) => void;
|
|
80
81
|
config: UserConfig;
|
|
@@ -184,7 +185,7 @@ declare const Drawer: {
|
|
|
184
185
|
|
|
185
186
|
declare const DropZone: react.ForwardRefExoticComponent<DropZoneProps & react.RefAttributes<HTMLDivElement>>;
|
|
186
187
|
|
|
187
|
-
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title, }: {
|
|
188
|
+
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title, suppressHydrationWarning, }: {
|
|
188
189
|
children: ReactNode;
|
|
189
190
|
href?: string;
|
|
190
191
|
onClick?: (e: SyntheticEvent) => void | Promise<void>;
|
|
@@ -195,6 +196,7 @@ declare const IconButton: ({ children, href, onClick, variant, type, disabled, t
|
|
|
195
196
|
newTab?: boolean;
|
|
196
197
|
fullWidth?: boolean;
|
|
197
198
|
title: string;
|
|
199
|
+
suppressHydrationWarning?: boolean;
|
|
198
200
|
}) => react_jsx_runtime.JSX.Element;
|
|
199
201
|
|
|
200
202
|
type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
@@ -227,6 +229,8 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
|
|
|
227
229
|
};
|
|
228
230
|
initialHistory?: InitialHistory;
|
|
229
231
|
metadata?: Metadata;
|
|
232
|
+
height?: CSSProperties["height"];
|
|
233
|
+
_experimentalFullScreenCanvas?: boolean;
|
|
230
234
|
};
|
|
231
235
|
declare function Puck<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>(props: PuckProps<UserConfig>): react_jsx_runtime.JSX.Element;
|
|
232
236
|
declare namespace Puck {
|
|
@@ -302,4 +306,12 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
302
306
|
*/
|
|
303
307
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
304
308
|
|
|
305
|
-
|
|
309
|
+
declare const blocksPlugin: () => Plugin;
|
|
310
|
+
|
|
311
|
+
declare const fieldsPlugin: (params?: {
|
|
312
|
+
mobileOnly?: boolean;
|
|
313
|
+
}) => PluginInternal;
|
|
314
|
+
|
|
315
|
+
declare const outlinePlugin: () => Plugin;
|
|
316
|
+
|
|
317
|
+
export { Action, ActionBar, AppState, AutoField, Button, ComponentConfig, ComponentData, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Fields, Group, History, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RootDataWithProps, UiState, type UsePuckData, UserGenerics, Viewports, blocksPlugin, createUsePuck, fieldsPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|