@measured/puck-field-contentful 0.14.3-canary.5c8c0e1 → 0.14.3-canary.73b83ef

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -4
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -88,12 +88,16 @@ type ExternalField<Props extends {
88
88
  filterFields?: Record<string, Field>;
89
89
  initialFilters?: Record<string, any>;
90
90
  };
91
- type CustomField<Props extends any = {}> = BaseField & {
91
+ type CustomField<Props extends {
92
+ [key: string]: any;
93
+ } = {
94
+ [key: string]: any;
95
+ }> = BaseField & {
92
96
  type: "custom";
93
97
  render: (props: {
94
- field: CustomField<Props>;
98
+ field: CustomField;
95
99
  name: string;
96
- value: Props;
100
+ value: any;
97
101
  onChange: (value: Props) => void;
98
102
  readOnly?: boolean;
99
103
  }) => ReactElement;
@@ -102,7 +106,7 @@ type Field<Props extends {
102
106
  [key: string]: any;
103
107
  } = {
104
108
  [key: string]: any;
105
- }> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props> | ObjectField<Props> | ExternalField<Props> | ExternalFieldWithAdaptor<Props> | CustomField<Props>;
109
+ }> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props> | ObjectField<Props> | ExternalField<Props> | ExternalFieldWithAdaptor<Props> | CustomField;
106
110
 
107
111
  type Entry<Fields extends Record<string, any> = {}> = BaseEntry & {
108
112
  fields: Fields;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-field-contentful",
3
- "version": "0.14.3-canary.5c8c0e1",
3
+ "version": "0.14.3-canary.73b83ef",
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.14.3-canary.5c8c0e1",
21
+ "@measured/puck": "^0.14.3-canary.73b83ef",
22
22
  "@types/react": "^18.2.0",
23
23
  "@types/react-dom": "^18.2.0",
24
24
  "contentful": "^10.8.6",