@measured/puck-plugin-heading-analyzer 0.19.0-canary.e62832e → 0.19.0-canary.e829bea0
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/README.md +1 -1
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +984 -1040
- package/dist/index.mjs +979 -1041
- package/package.json +3 -3
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
@@ -13,6 +13,7 @@ type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
|
|
13
13
|
type BaseField = {
|
14
14
|
label?: string;
|
15
15
|
labelIcon?: ReactElement;
|
16
|
+
metadata?: Metadata;
|
16
17
|
};
|
17
18
|
type TextField = BaseField & {
|
18
19
|
type: "text";
|
@@ -110,6 +111,11 @@ type CustomField<Props extends any = {}> = BaseField & {
|
|
110
111
|
readOnly?: boolean;
|
111
112
|
}) => ReactElement;
|
112
113
|
};
|
114
|
+
type SlotField = BaseField & {
|
115
|
+
type: "slot";
|
116
|
+
allow?: string[];
|
117
|
+
disallow?: string[];
|
118
|
+
};
|
113
119
|
type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
|
114
120
|
[key: string]: any;
|
115
121
|
} ? Props : any> | ObjectField<Props extends {
|
@@ -118,7 +124,7 @@ type Field<Props extends any = any> = TextField | NumberField | TextareaField |
|
|
118
124
|
[key: string]: any;
|
119
125
|
} ? Props : any> | ExternalFieldWithAdaptor<Props extends {
|
120
126
|
[key: string]: any;
|
121
|
-
} ? Props : any> | CustomField<Props
|
127
|
+
} ? Props : any> | CustomField<Props> | SlotField;
|
122
128
|
type FieldProps<F = Field<any>, ValueType = any> = {
|
123
129
|
field: F;
|
124
130
|
value: ValueType;
|
@@ -127,6 +133,10 @@ type FieldProps<F = Field<any>, ValueType = any> = {
|
|
127
133
|
readOnly?: boolean;
|
128
134
|
};
|
129
135
|
|
136
|
+
type Metadata = {
|
137
|
+
[key: string]: any;
|
138
|
+
};
|
139
|
+
|
130
140
|
type ItemWithId = {
|
131
141
|
_arrayId: string;
|
132
142
|
_originalIndex: number;
|
package/dist/index.d.ts
CHANGED
@@ -13,6 +13,7 @@ type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
|
|
13
13
|
type BaseField = {
|
14
14
|
label?: string;
|
15
15
|
labelIcon?: ReactElement;
|
16
|
+
metadata?: Metadata;
|
16
17
|
};
|
17
18
|
type TextField = BaseField & {
|
18
19
|
type: "text";
|
@@ -110,6 +111,11 @@ type CustomField<Props extends any = {}> = BaseField & {
|
|
110
111
|
readOnly?: boolean;
|
111
112
|
}) => ReactElement;
|
112
113
|
};
|
114
|
+
type SlotField = BaseField & {
|
115
|
+
type: "slot";
|
116
|
+
allow?: string[];
|
117
|
+
disallow?: string[];
|
118
|
+
};
|
113
119
|
type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
|
114
120
|
[key: string]: any;
|
115
121
|
} ? Props : any> | ObjectField<Props extends {
|
@@ -118,7 +124,7 @@ type Field<Props extends any = any> = TextField | NumberField | TextareaField |
|
|
118
124
|
[key: string]: any;
|
119
125
|
} ? Props : any> | ExternalFieldWithAdaptor<Props extends {
|
120
126
|
[key: string]: any;
|
121
|
-
} ? Props : any> | CustomField<Props
|
127
|
+
} ? Props : any> | CustomField<Props> | SlotField;
|
122
128
|
type FieldProps<F = Field<any>, ValueType = any> = {
|
123
129
|
field: F;
|
124
130
|
value: ValueType;
|
@@ -127,6 +133,10 @@ type FieldProps<F = Field<any>, ValueType = any> = {
|
|
127
133
|
readOnly?: boolean;
|
128
134
|
};
|
129
135
|
|
136
|
+
type Metadata = {
|
137
|
+
[key: string]: any;
|
138
|
+
};
|
139
|
+
|
130
140
|
type ItemWithId = {
|
131
141
|
_arrayId: string;
|
132
142
|
_originalIndex: number;
|