@measured/puck 0.20.0-canary.8f2f0f46 → 0.20.0-canary.aee5fc96
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-HUKJ36SA.mjs → chunk-BNXRZWNI.mjs} +2 -1
- package/dist/{chunk-5PAQR6UC.mjs → chunk-UTM42U4O.mjs} +2253 -1737
- package/dist/index.css +598 -278
- package/dist/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +2150 -1640
- package/dist/index.mjs +8 -2
- package/dist/no-external.css +598 -278
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +2150 -1640
- 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 +2 -1
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-B57SgEEc.d.mts → walk-tree-CU8Fq-KC.d.mts} +17 -6
- package/dist/{walk-tree-B57SgEEc.d.ts → walk-tree-CU8Fq-KC.d.ts} +17 -6
- 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-CU8Fq-KC.mjs';
|
|
2
|
+
export { a6 as Adaptor, a4 as ArrayField, E as ArrayState, aj as AsFieldProps, L as BaseData, _ as BaseField, Y as ComponentDataMap, T as ComponentDataOptionalId, Z as Content, aa as CustomField, a9 as CustomFieldRender, ag as DefaultComponentProps, ad as DefaultRootFieldProps, af as DefaultRootProps, ae as DefaultRootRenderProps, p as Direction, q as DragAxis, a8 as ExternalField, a7 as ExternalFieldWithAdaptor, an as ExtractField, al as ExtractPropsFromConfig, am as ExtractRootPropsFromConfig, z as FieldRenderFunctions, v as FieldTransformFn, u as FieldTransformFnParams, B as ItemWithId, X as MappedItem, a0 as NumberField, a5 as ObjectField, y as OverrideKey, J as PuckComponent, ac as PuckContext, a3 as RadioField, K as RootConfig, Q as RootData, N as RootDataWithoutProps, a2 as SelectField, S as Slot, G as SlotComponent, ab as SlotField, $ as TextField, a1 as TextareaField, s as Viewport, ak as WithChildren, ah as WithId, ai as WithPuckProps, W as WithSlotProps, m as migrate, x as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CU8Fq-KC.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;
|
|
@@ -227,6 +227,7 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
|
|
|
227
227
|
};
|
|
228
228
|
initialHistory?: InitialHistory;
|
|
229
229
|
metadata?: Metadata;
|
|
230
|
+
height?: CSSProperties["height"];
|
|
230
231
|
};
|
|
231
232
|
declare function Puck<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>(props: PuckProps<UserConfig>): react_jsx_runtime.JSX.Element;
|
|
232
233
|
declare namespace Puck {
|
|
@@ -302,4 +303,12 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
302
303
|
*/
|
|
303
304
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
304
305
|
|
|
305
|
-
|
|
306
|
+
declare const blocksPlugin: () => Plugin;
|
|
307
|
+
|
|
308
|
+
declare const fieldsPlugin: (params?: {
|
|
309
|
+
mobileOnly?: boolean;
|
|
310
|
+
}) => PluginInternal;
|
|
311
|
+
|
|
312
|
+
declare const outlinePlugin: () => Plugin;
|
|
313
|
+
|
|
314
|
+
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-CU8Fq-KC.js';
|
|
2
|
+
export { a6 as Adaptor, a4 as ArrayField, E as ArrayState, aj as AsFieldProps, L as BaseData, _ as BaseField, Y as ComponentDataMap, T as ComponentDataOptionalId, Z as Content, aa as CustomField, a9 as CustomFieldRender, ag as DefaultComponentProps, ad as DefaultRootFieldProps, af as DefaultRootProps, ae as DefaultRootRenderProps, p as Direction, q as DragAxis, a8 as ExternalField, a7 as ExternalFieldWithAdaptor, an as ExtractField, al as ExtractPropsFromConfig, am as ExtractRootPropsFromConfig, z as FieldRenderFunctions, v as FieldTransformFn, u as FieldTransformFnParams, B as ItemWithId, X as MappedItem, a0 as NumberField, a5 as ObjectField, y as OverrideKey, J as PuckComponent, ac as PuckContext, a3 as RadioField, K as RootConfig, Q as RootData, N as RootDataWithoutProps, a2 as SelectField, S as Slot, G as SlotComponent, ab as SlotField, $ as TextField, a1 as TextareaField, s as Viewport, ak as WithChildren, ah as WithId, ai as WithPuckProps, W as WithSlotProps, m as migrate, x as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CU8Fq-KC.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;
|
|
@@ -227,6 +227,7 @@ type PuckProps<UserConfig extends Config = Config, G extends UserGenerics<UserCo
|
|
|
227
227
|
};
|
|
228
228
|
initialHistory?: InitialHistory;
|
|
229
229
|
metadata?: Metadata;
|
|
230
|
+
height?: CSSProperties["height"];
|
|
230
231
|
};
|
|
231
232
|
declare function Puck<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>(props: PuckProps<UserConfig>): react_jsx_runtime.JSX.Element;
|
|
232
233
|
declare namespace Puck {
|
|
@@ -302,4 +303,12 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
302
303
|
*/
|
|
303
304
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
304
305
|
|
|
305
|
-
|
|
306
|
+
declare const blocksPlugin: () => Plugin;
|
|
307
|
+
|
|
308
|
+
declare const fieldsPlugin: (params?: {
|
|
309
|
+
mobileOnly?: boolean;
|
|
310
|
+
}) => PluginInternal;
|
|
311
|
+
|
|
312
|
+
declare const outlinePlugin: () => Plugin;
|
|
313
|
+
|
|
314
|
+
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 };
|