@measured/puck 0.14.0-canary.cbdf66d → 0.14.0-canary.cc7d391
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Config-1444273f.d.ts → Config-ab049d49.d.ts} +4 -0
- package/dist/index.css +791 -539
- package/dist/index.d.ts +8 -4
- package/dist/index.js +174 -108
- package/dist/rsc.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
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, a as DefaultComponentProps, b as DefaultRootProps, M as MappedItem, R as RootDataWithProps, c as RootData } from './Config-ab049d49.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-ab049d49.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';
|
@@ -125,6 +125,7 @@ declare const Drawer: {
|
|
125
125
|
name: string;
|
126
126
|
children?: ((props: {
|
127
127
|
children: ReactNode;
|
128
|
+
name: string;
|
128
129
|
}) => ReactElement) | undefined;
|
129
130
|
id?: string | undefined;
|
130
131
|
index: number;
|
@@ -167,7 +168,7 @@ type RenderFunc<Props extends {
|
|
167
168
|
[key: string]: any;
|
168
169
|
} = {
|
169
170
|
children: ReactNode;
|
170
|
-
}> =
|
171
|
+
}> = (props: Props) => ReactElement;
|
171
172
|
declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "components", "componentItem", "outline", "puck", "preview"];
|
172
173
|
type OverrideKey = (typeof overrideKeys)[number];
|
173
174
|
type OverridesGeneric<Shape extends {
|
@@ -197,7 +198,10 @@ type Overrides = OverridesGeneric<{
|
|
197
198
|
className?: string;
|
198
199
|
}>;
|
199
200
|
components: RenderFunc;
|
200
|
-
componentItem: RenderFunc
|
201
|
+
componentItem: RenderFunc<{
|
202
|
+
children: ReactNode;
|
203
|
+
name: string;
|
204
|
+
}>;
|
201
205
|
outline: RenderFunc;
|
202
206
|
puck: RenderFunc;
|
203
207
|
}>;
|