@measured/puck-plugin-heading-analyzer 0.14.3-canary.061cc2a → 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/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;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck-plugin-heading-analyzer",
|
3
|
-
"version": "0.14.3-canary.
|
3
|
+
"version": "0.14.3-canary.5c8c0e1",
|
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.
|
21
|
+
"@measured/puck": "^0.14.3-canary.5c8c0e1",
|
22
22
|
"@types/react": "^18.2.0",
|
23
23
|
"@types/react-dom": "^18.2.0",
|
24
24
|
"eslint": "^7.32.0",
|