@measured/puck-plugin-heading-analyzer 0.14.3-canary.9a1cc7c → 0.15.0-canary.480467a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -99,16 +99,12 @@ type ExternalField<Props extends {
99
99
  filterFields?: Record<string, Field>;
100
100
  initialFilters?: Record<string, any>;
101
101
  };
102
- type CustomField<Props extends {
103
- [key: string]: any;
104
- } = {
105
- [key: string]: any;
106
- }> = BaseField & {
102
+ type CustomField<Props extends any = {}> = BaseField & {
107
103
  type: "custom";
108
104
  render: (props: {
109
- field: CustomField;
105
+ field: CustomField<Props>;
110
106
  name: string;
111
- value: any;
107
+ value: Props;
112
108
  onChange: (value: Props) => void;
113
109
  readOnly?: boolean;
114
110
  }) => ReactElement;
@@ -117,7 +113,7 @@ type Field<Props extends {
117
113
  [key: string]: any;
118
114
  } = {
119
115
  [key: string]: any;
120
- }> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props> | ObjectField<Props> | ExternalField<Props> | ExternalFieldWithAdaptor<Props> | CustomField;
116
+ }> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props> | ObjectField<Props> | ExternalField<Props> | ExternalFieldWithAdaptor<Props> | CustomField<Props>;
121
117
  type ItemWithId = {
122
118
  _arrayId: string;
123
119
  _originalIndex: number;
@@ -176,7 +172,7 @@ type Overrides = OverridesGeneric<{
176
172
  children: ReactNode;
177
173
  }>;
178
174
  headerActions: RenderFunc<{
179
- children?: ReactNode;
175
+ children: ReactNode;
180
176
  }>;
181
177
  preview: RenderFunc;
182
178
  fields: RenderFunc<{