@measured/puck-plugin-heading-analyzer 0.14.2 → 0.14.3-canary.5c8c0e1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +4 -8
- package/dist/index.js +354 -439
- package/package.json +2 -2
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:
|
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;
|