@measured/puck 0.14.3-canary.061cc2a → 0.14.3-canary.5c8c0e1
Sign up to get free protection for your applications and to get access to all the features.
@@ -110,16 +110,12 @@ type ExternalField<Props extends {
|
|
110
110
|
filterFields?: Record<string, Field>;
|
111
111
|
initialFilters?: Record<string, any>;
|
112
112
|
};
|
113
|
-
type CustomField<Props extends {
|
114
|
-
[key: string]: any;
|
115
|
-
} = {
|
116
|
-
[key: string]: any;
|
117
|
-
}> = BaseField & {
|
113
|
+
type CustomField<Props extends any = {}> = BaseField & {
|
118
114
|
type: "custom";
|
119
115
|
render: (props: {
|
120
|
-
field: CustomField
|
116
|
+
field: CustomField<Props>;
|
121
117
|
name: string;
|
122
|
-
value:
|
118
|
+
value: Props;
|
123
119
|
onChange: (value: Props) => void;
|
124
120
|
readOnly?: boolean;
|
125
121
|
}) => ReactElement;
|
@@ -128,7 +124,7 @@ type Field<Props extends {
|
|
128
124
|
[key: string]: any;
|
129
125
|
} = {
|
130
126
|
[key: string]: any;
|
131
|
-
}> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props> | ObjectField<Props> | ExternalField<Props> | ExternalFieldWithAdaptor<Props> | CustomField
|
127
|
+
}> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props> | ObjectField<Props> | ExternalField<Props> | ExternalFieldWithAdaptor<Props> | CustomField<Props>;
|
132
128
|
type DefaultRootProps = {
|
133
129
|
title?: string;
|
134
130
|
[key: string]: any;
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { U as UiState, D as Data, A as AppState, C as Config, a as DefaultRootProps, I as ItemSelector, b as DropZoneProps, F as Field, V as Viewports, c as DefaultComponentProps, M as MappedItem, R as RootDataWithProps, d as RootData, e as ComponentData } from './Config-
|
2
|
-
export { i as Adaptor, h as ArrayField, s as ArrayState, p as BaseData, B as BaseField, o as ComponentConfig, m as Content, k as CustomField, j as ExternalField, E as ExternalFieldWithAdaptor, l as Fields, r as ItemWithId, N as NumberField, O as ObjectField, P as PuckComponent, n as PuckContext, g as RadioField, q as RootDataWithoutProps, S as SelectField, T as TextField, f as TextareaField } from './Config-
|
1
|
+
import { U as UiState, D as Data, A as AppState, C as Config, a as DefaultRootProps, I as ItemSelector, b as DropZoneProps, F as Field, V as Viewports, c as DefaultComponentProps, M as MappedItem, R as RootDataWithProps, d as RootData, e as ComponentData } from './Config-550396e1.js';
|
2
|
+
export { i as Adaptor, h as ArrayField, s as ArrayState, p as BaseData, B as BaseField, o as ComponentConfig, m as Content, k as CustomField, j as ExternalField, E as ExternalFieldWithAdaptor, l as Fields, r as ItemWithId, N as NumberField, O as ObjectField, P as PuckComponent, n as PuckContext, g as RadioField, q as RootDataWithoutProps, S as SelectField, T as TextField, f as TextareaField } from './Config-550396e1.js';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
4
|
import * as react from 'react';
|
5
5
|
import { ReactNode, ReactElement, CSSProperties, SyntheticEvent } from 'react';
|
package/dist/rsc.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { C as Config, D as Data } from './Config-
|
2
|
+
import { C as Config, D as Data } from './Config-550396e1.js';
|
3
3
|
import 'react';
|
4
4
|
|
5
5
|
declare function Render<UserConfig extends Config = Config>({ config, data, }: {
|
package/package.json
CHANGED