@measured/puck 0.14.0-canary.5bb1708 → 0.14.0-canary.70cf177
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/{Config-487c2755.d.ts → Config-29dc2731.d.ts} +19 -2
- package/dist/index.css +218 -153
- package/dist/index.d.ts +7 -5
- package/dist/index.js +1148 -522
- package/dist/rsc.d.ts +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { C as Config, D as Data, I as ItemSelector, U as UiState, A as AppState, F as Field, a as DefaultComponentProps, b as DefaultRootProps, M as MappedItem, R as RootDataWithProps, c as RootData } from './Config-
|
2
|
-
export { g as Adaptor, f as ArrayField, r as ArrayState, n as BaseData, B as BaseField, m as ComponentConfig, o as ComponentData, k as Content, i as CustomField, s as DropZone, h as ExternalField, E as ExternalFieldWithAdaptor, j as Fields, q as ItemWithId, N as NumberField, O as ObjectField, P as PuckComponent, l as PuckContext, e as RadioField, p as RootDataWithoutProps, S as SelectField, T as TextField, d as TextareaField } from './Config-
|
1
|
+
import { C as Config, D as Data, I as ItemSelector, U as UiState, A as AppState, F as Field, V as Viewports, a as DefaultComponentProps, b as DefaultRootProps, M as MappedItem, R as RootDataWithProps, c as RootData } from './Config-29dc2731.js';
|
2
|
+
export { g as Adaptor, f as ArrayField, r as ArrayState, n as BaseData, B as BaseField, m as ComponentConfig, o as ComponentData, k as Content, i as CustomField, s as DropZone, h as ExternalField, E as ExternalFieldWithAdaptor, j as Fields, q as ItemWithId, N as NumberField, O as ObjectField, P as PuckComponent, l as PuckContext, e as RadioField, p as RootDataWithoutProps, S as SelectField, T as TextField, d as TextareaField } from './Config-29dc2731.js';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
4
|
import * as react from 'react';
|
5
5
|
import { ReactNode, CSSProperties, ReactElement, SyntheticEvent } from 'react';
|
6
|
-
import { DragStart, DragUpdate } from '@
|
6
|
+
import { DragStart, DragUpdate } from '@measured/dnd';
|
7
7
|
|
8
8
|
type PathData = Record<string, {
|
9
9
|
path: string[];
|
@@ -33,7 +33,8 @@ type DropZoneContext<UserConfig extends Config<any, any, any> = Config<any, any,
|
|
33
33
|
pathData?: PathData;
|
34
34
|
registerPath?: (selector: ItemSelector) => void;
|
35
35
|
mode?: "edit" | "render";
|
36
|
-
|
36
|
+
zoneWillDrag?: string;
|
37
|
+
setZoneWillDrag?: (zone: string) => void;
|
37
38
|
} | null;
|
38
39
|
declare const dropZoneContext: react.Context<DropZoneContext<Config<any, any, any>>>;
|
39
40
|
declare const DropZoneProvider: ({ children, value, }: {
|
@@ -222,7 +223,7 @@ type Plugin = {
|
|
222
223
|
overrides: Partial<Overrides>;
|
223
224
|
};
|
224
225
|
|
225
|
-
declare function Puck<UserConfig extends Config<any, any, any> = Config<any, any, any>>({ children, config, data: initialData, ui: initialUi, onChange, onPublish, plugins, overrides, renderHeader, renderHeaderActions, headerTitle, headerPath, }: {
|
226
|
+
declare function Puck<UserConfig extends Config<any, any, any> = Config<any, any, any>>({ children, config, data: initialData, ui: initialUi, onChange, onPublish, plugins, overrides, renderHeader, renderHeaderActions, headerTitle, headerPath, viewports, }: {
|
226
227
|
children?: ReactNode;
|
227
228
|
config: UserConfig;
|
228
229
|
data: Data;
|
@@ -242,6 +243,7 @@ declare function Puck<UserConfig extends Config<any, any, any> = Config<any, any
|
|
242
243
|
}) => ReactElement;
|
243
244
|
headerTitle?: string;
|
244
245
|
headerPath?: string;
|
246
|
+
viewports?: Viewports;
|
245
247
|
}): react_jsx_runtime.JSX.Element;
|
246
248
|
declare namespace Puck {
|
247
249
|
var Components: () => react_jsx_runtime.JSX.Element;
|