@measured/puck 0.21.0-canary.e9d5c0ea → 0.21.0-canary.ec77dd9f
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-J6I4S2BQ.mjs → chunk-NW2GGRCZ.mjs} +1902 -2728
- package/dist/{chunk-6SIKCDJJ.mjs → chunk-TC25DCTQ.mjs} +10 -12
- package/dist/index.css +268 -646
- package/dist/index.d.mts +5 -17
- package/dist/index.d.ts +5 -17
- package/dist/index.js +1883 -2704
- package/dist/index.mjs +2 -8
- package/dist/no-external.css +268 -646
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +1880 -2701
- package/dist/no-external.mjs +2 -8
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +10 -12
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-CD9WQheJ.d.mts → walk-tree-CkSoNBF7.d.mts} +9 -21
- package/dist/{walk-tree-CD9WQheJ.d.ts → walk-tree-CkSoNBF7.d.ts} +9 -21
- 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
|
|
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 } from './walk-tree-CkSoNBF7.mjs';
|
|
2
|
+
export { ad as Adaptor, ab as ArrayField, B as ArrayState, ar as AsFieldProps, X as BaseData, a5 as BaseField, af as CacheOpts, J as ComponentConfigExtensions, T as ComponentConfigParams, a0 as ComponentDataMap, _ as ComponentDataOptionalId, a3 as ComponentMetadata, Q as ConfigParams, a1 as Content, ai as CustomField, ah as CustomFieldRender, ao as DefaultComponentProps, L as DefaultComponents, al as DefaultRootFieldProps, an as DefaultRootProps, am as DefaultRootRenderProps, o as Direction, p as DragAxis, ag as ExternalField, ae as ExternalFieldWithAdaptor, N as ExtractConfigParams, at as ExtractField, a4 as FieldMetadata, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, z as ItemWithId, $ as MappedItem, a7 as NumberField, ac as ObjectField, x as OverrideKey, G as PuckComponent, ak as PuckContext, a2 as PuckMetadata, aa as RadioField, K as RootConfig, Z as RootData, Y as RootDataWithoutProps, a9 as SelectField, S as Slot, E as SlotComponent, aj as SlotField, a6 as TextField, a8 as TextareaField, q as Viewport, as as WithChildren, ap as WithId, aq as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CkSoNBF7.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
|
|
5
|
+
import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
|
|
6
6
|
|
|
7
7
|
type HistorySlice<D = any> = {
|
|
8
8
|
index: number;
|
|
@@ -75,7 +75,6 @@ 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;
|
|
79
78
|
state: G["UserAppState"];
|
|
80
79
|
dispatch: (action: PuckAction) => void;
|
|
81
80
|
config: UserConfig;
|
|
@@ -185,7 +184,7 @@ declare const Drawer: {
|
|
|
185
184
|
|
|
186
185
|
declare const DropZone: react.ForwardRefExoticComponent<DropZoneProps & react.RefAttributes<HTMLDivElement>>;
|
|
187
186
|
|
|
188
|
-
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title,
|
|
187
|
+
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title, }: {
|
|
189
188
|
children: ReactNode;
|
|
190
189
|
href?: string;
|
|
191
190
|
onClick?: (e: SyntheticEvent) => void | Promise<void>;
|
|
@@ -196,7 +195,6 @@ declare const IconButton: ({ children, href, onClick, variant, type, disabled, t
|
|
|
196
195
|
newTab?: boolean;
|
|
197
196
|
fullWidth?: boolean;
|
|
198
197
|
title: string;
|
|
199
|
-
suppressHydrationWarning?: boolean;
|
|
200
198
|
}) => react_jsx_runtime.JSX.Element;
|
|
201
199
|
|
|
202
200
|
type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
@@ -229,8 +227,6 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
|
|
|
229
227
|
};
|
|
230
228
|
initialHistory?: InitialHistory;
|
|
231
229
|
metadata?: Metadata;
|
|
232
|
-
height?: CSSProperties["height"];
|
|
233
|
-
_experimentalFullScreenCanvas?: boolean;
|
|
234
230
|
};
|
|
235
231
|
declare function Puck<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>(props: PuckProps<UserConfig>): react_jsx_runtime.JSX.Element;
|
|
236
232
|
declare namespace Puck {
|
|
@@ -306,12 +302,4 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
306
302
|
*/
|
|
307
303
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
308
304
|
|
|
309
|
-
|
|
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 };
|
|
305
|
+
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, createUsePuck, 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
|
|
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 } from './walk-tree-CkSoNBF7.js';
|
|
2
|
+
export { ad as Adaptor, ab as ArrayField, B as ArrayState, ar as AsFieldProps, X as BaseData, a5 as BaseField, af as CacheOpts, J as ComponentConfigExtensions, T as ComponentConfigParams, a0 as ComponentDataMap, _ as ComponentDataOptionalId, a3 as ComponentMetadata, Q as ConfigParams, a1 as Content, ai as CustomField, ah as CustomFieldRender, ao as DefaultComponentProps, L as DefaultComponents, al as DefaultRootFieldProps, an as DefaultRootProps, am as DefaultRootRenderProps, o as Direction, p as DragAxis, ag as ExternalField, ae as ExternalFieldWithAdaptor, N as ExtractConfigParams, at as ExtractField, a4 as FieldMetadata, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, z as ItemWithId, $ as MappedItem, a7 as NumberField, ac as ObjectField, x as OverrideKey, G as PuckComponent, ak as PuckContext, a2 as PuckMetadata, aa as RadioField, K as RootConfig, Z as RootData, Y as RootDataWithoutProps, a9 as SelectField, S as Slot, E as SlotComponent, aj as SlotField, a6 as TextField, a8 as TextareaField, q as Viewport, as as WithChildren, ap as WithId, aq as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CkSoNBF7.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
|
|
5
|
+
import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
|
|
6
6
|
|
|
7
7
|
type HistorySlice<D = any> = {
|
|
8
8
|
index: number;
|
|
@@ -75,7 +75,6 @@ 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;
|
|
79
78
|
state: G["UserAppState"];
|
|
80
79
|
dispatch: (action: PuckAction) => void;
|
|
81
80
|
config: UserConfig;
|
|
@@ -185,7 +184,7 @@ declare const Drawer: {
|
|
|
185
184
|
|
|
186
185
|
declare const DropZone: react.ForwardRefExoticComponent<DropZoneProps & react.RefAttributes<HTMLDivElement>>;
|
|
187
186
|
|
|
188
|
-
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title,
|
|
187
|
+
declare const IconButton: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, title, }: {
|
|
189
188
|
children: ReactNode;
|
|
190
189
|
href?: string;
|
|
191
190
|
onClick?: (e: SyntheticEvent) => void | Promise<void>;
|
|
@@ -196,7 +195,6 @@ declare const IconButton: ({ children, href, onClick, variant, type, disabled, t
|
|
|
196
195
|
newTab?: boolean;
|
|
197
196
|
fullWidth?: boolean;
|
|
198
197
|
title: string;
|
|
199
|
-
suppressHydrationWarning?: boolean;
|
|
200
198
|
}) => react_jsx_runtime.JSX.Element;
|
|
201
199
|
|
|
202
200
|
type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
@@ -229,8 +227,6 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
|
|
|
229
227
|
};
|
|
230
228
|
initialHistory?: InitialHistory;
|
|
231
229
|
metadata?: Metadata;
|
|
232
|
-
height?: CSSProperties["height"];
|
|
233
|
-
_experimentalFullScreenCanvas?: boolean;
|
|
234
230
|
};
|
|
235
231
|
declare function Puck<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>(props: PuckProps<UserConfig>): react_jsx_runtime.JSX.Element;
|
|
236
232
|
declare namespace Puck {
|
|
@@ -306,12 +302,4 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
306
302
|
*/
|
|
307
303
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
308
304
|
|
|
309
|
-
|
|
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 };
|
|
305
|
+
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, createUsePuck, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|