@measured/puck-plugin-heading-analyzer 0.19.0-canary.a281c342 → 0.19.0-canary.a6dd529f
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.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +623 -540
- package/dist/index.mjs +623 -540
- package/package.json +2 -2
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";
|
@@ -112,6 +113,8 @@ type CustomField<Props extends any = {}> = BaseField & {
|
|
112
113
|
};
|
113
114
|
type SlotField = BaseField & {
|
114
115
|
type: "slot";
|
116
|
+
allow?: string[];
|
117
|
+
disallow?: string[];
|
115
118
|
};
|
116
119
|
type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
|
117
120
|
[key: string]: any;
|
@@ -130,6 +133,10 @@ type FieldProps<F = Field<any>, ValueType = any> = {
|
|
130
133
|
readOnly?: boolean;
|
131
134
|
};
|
132
135
|
|
136
|
+
type Metadata = {
|
137
|
+
[key: string]: any;
|
138
|
+
};
|
139
|
+
|
133
140
|
type ItemWithId = {
|
134
141
|
_arrayId: string;
|
135
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";
|
@@ -112,6 +113,8 @@ type CustomField<Props extends any = {}> = BaseField & {
|
|
112
113
|
};
|
113
114
|
type SlotField = BaseField & {
|
114
115
|
type: "slot";
|
116
|
+
allow?: string[];
|
117
|
+
disallow?: string[];
|
115
118
|
};
|
116
119
|
type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
|
117
120
|
[key: string]: any;
|
@@ -130,6 +133,10 @@ type FieldProps<F = Field<any>, ValueType = any> = {
|
|
130
133
|
readOnly?: boolean;
|
131
134
|
};
|
132
135
|
|
136
|
+
type Metadata = {
|
137
|
+
[key: string]: any;
|
138
|
+
};
|
139
|
+
|
133
140
|
type ItemWithId = {
|
134
141
|
_arrayId: string;
|
135
142
|
_originalIndex: number;
|