@measured/puck-field-contentful 0.15.0-canary.dd7051e → 0.15.1-canary.9151255
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +8 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -93,16 +93,21 @@ type CustomField<Props extends any = {}> = BaseField & {
|
|
93
93
|
render: (props: {
|
94
94
|
field: CustomField<Props>;
|
95
95
|
name: string;
|
96
|
+
id: string;
|
96
97
|
value: Props;
|
97
98
|
onChange: (value: Props) => void;
|
98
99
|
readOnly?: boolean;
|
99
100
|
}) => ReactElement;
|
100
101
|
};
|
101
|
-
type Field<Props extends {
|
102
|
+
type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
|
102
103
|
[key: string]: any;
|
103
|
-
}
|
104
|
+
} ? Props : any> | ObjectField<Props extends {
|
105
|
+
[key: string]: any;
|
106
|
+
} ? Props : any> | ExternalField<Props extends {
|
107
|
+
[key: string]: any;
|
108
|
+
} ? Props : any> | ExternalFieldWithAdaptor<Props extends {
|
104
109
|
[key: string]: any;
|
105
|
-
}
|
110
|
+
} ? Props : any> | CustomField<Props>;
|
106
111
|
|
107
112
|
type Entry<Fields extends Record<string, any> = {}> = BaseEntry & {
|
108
113
|
fields: Fields;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck-field-contentful",
|
3
|
-
"version": "0.15.
|
3
|
+
"version": "0.15.1-canary.9151255",
|
4
4
|
"author": "Measured Corporation Ltd <hello@measured.co>",
|
5
5
|
"repository": "measuredco/puck",
|
6
6
|
"bugs": "https://github.com/measuredco/puck/issues",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"dist"
|
19
19
|
],
|
20
20
|
"devDependencies": {
|
21
|
-
"@measured/puck": "^0.15.
|
21
|
+
"@measured/puck": "^0.15.1-canary.9151255",
|
22
22
|
"@types/react": "^18.2.0",
|
23
23
|
"@types/react-dom": "^18.2.0",
|
24
24
|
"contentful": "^10.8.6",
|