@measured/puck-plugin-heading-analyzer 0.19.0-canary.0ab653c → 0.19.0-canary.1918ad70

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 CHANGED
@@ -12,6 +12,7 @@ type FieldOption = {
12
12
  type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
13
13
  type BaseField = {
14
14
  label?: string;
15
+ labelIcon?: ReactElement;
15
16
  };
16
17
  type TextField = BaseField & {
17
18
  type: "text";
@@ -109,6 +110,9 @@ type CustomField<Props extends any = {}> = BaseField & {
109
110
  readOnly?: boolean;
110
111
  }) => ReactElement;
111
112
  };
113
+ type SlotField = BaseField & {
114
+ type: "slot";
115
+ };
112
116
  type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
113
117
  [key: string]: any;
114
118
  } ? Props : any> | ObjectField<Props extends {
@@ -117,7 +121,7 @@ type Field<Props extends any = any> = TextField | NumberField | TextareaField |
117
121
  [key: string]: any;
118
122
  } ? Props : any> | ExternalFieldWithAdaptor<Props extends {
119
123
  [key: string]: any;
120
- } ? Props : any> | CustomField<Props>;
124
+ } ? Props : any> | CustomField<Props> | SlotField;
121
125
  type FieldProps<F = Field<any>, ValueType = any> = {
122
126
  field: F;
123
127
  value: ValueType;
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ type FieldOption = {
12
12
  type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
13
13
  type BaseField = {
14
14
  label?: string;
15
+ labelIcon?: ReactElement;
15
16
  };
16
17
  type TextField = BaseField & {
17
18
  type: "text";
@@ -109,6 +110,9 @@ type CustomField<Props extends any = {}> = BaseField & {
109
110
  readOnly?: boolean;
110
111
  }) => ReactElement;
111
112
  };
113
+ type SlotField = BaseField & {
114
+ type: "slot";
115
+ };
112
116
  type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
113
117
  [key: string]: any;
114
118
  } ? Props : any> | ObjectField<Props extends {
@@ -117,7 +121,7 @@ type Field<Props extends any = any> = TextField | NumberField | TextareaField |
117
121
  [key: string]: any;
118
122
  } ? Props : any> | ExternalFieldWithAdaptor<Props extends {
119
123
  [key: string]: any;
120
- } ? Props : any> | CustomField<Props>;
124
+ } ? Props : any> | CustomField<Props> | SlotField;
121
125
  type FieldProps<F = Field<any>, ValueType = any> = {
122
126
  field: F;
123
127
  value: ValueType;