@measured/puck-field-contentful 0.14.3-canary.9a1cc7c → 0.15.0-canary.480467a

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 +4 -8
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -88,16 +88,12 @@ type ExternalField<Props extends {
88
88
  filterFields?: Record<string, Field>;
89
89
  initialFilters?: Record<string, any>;
90
90
  };
91
- type CustomField<Props extends {
92
- [key: string]: any;
93
- } = {
94
- [key: string]: any;
95
- }> = BaseField & {
91
+ type CustomField<Props extends any = {}> = BaseField & {
96
92
  type: "custom";
97
93
  render: (props: {
98
- field: CustomField;
94
+ field: CustomField<Props>;
99
95
  name: string;
100
- value: any;
96
+ value: Props;
101
97
  onChange: (value: Props) => void;
102
98
  readOnly?: boolean;
103
99
  }) => ReactElement;
@@ -106,7 +102,7 @@ type Field<Props extends {
106
102
  [key: string]: any;
107
103
  } = {
108
104
  [key: string]: any;
109
- }> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props> | ObjectField<Props> | ExternalField<Props> | ExternalFieldWithAdaptor<Props> | CustomField;
105
+ }> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props> | ObjectField<Props> | ExternalField<Props> | ExternalFieldWithAdaptor<Props> | CustomField<Props>;
110
106
 
111
107
  type Entry<Fields extends Record<string, any> = {}> = BaseEntry & {
112
108
  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.9a1cc7c",
3
+ "version": "0.15.0-canary.480467a",
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.9a1cc7c",
21
+ "@measured/puck": "^0.15.0-canary.480467a",
22
22
  "@types/react": "^18.2.0",
23
23
  "@types/react-dom": "^18.2.0",
24
24
  "contentful": "^10.8.6",