@measured/puck-plugin-heading-analyzer 0.19.0-canary.0ea6ce4 → 0.19.0-canary.1286b503

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 CHANGED
@@ -31,4 +31,4 @@ export function Page() {
31
31
 
32
32
  ## License
33
33
 
34
- MIT © [Measured Corporation Ltd](https://measured.co)
34
+ MIT © [The Puck Contributors](https://github.com/measuredco/puck/graphs/contributors)
package/dist/index.d.mts CHANGED
@@ -12,6 +12,8 @@ type FieldOption = {
12
12
  type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
13
13
  type BaseField = {
14
14
  label?: string;
15
+ labelIcon?: ReactElement;
16
+ metadata?: Metadata;
15
17
  };
16
18
  type TextField = BaseField & {
17
19
  type: "text";
@@ -109,6 +111,11 @@ type CustomField<Props extends any = {}> = BaseField & {
109
111
  readOnly?: boolean;
110
112
  }) => ReactElement;
111
113
  };
114
+ type SlotField = BaseField & {
115
+ type: "slot";
116
+ allow?: string[];
117
+ disallow?: string[];
118
+ };
112
119
  type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
113
120
  [key: string]: any;
114
121
  } ? Props : any> | ObjectField<Props extends {
@@ -117,7 +124,7 @@ type Field<Props extends any = any> = TextField | NumberField | TextareaField |
117
124
  [key: string]: any;
118
125
  } ? Props : any> | ExternalFieldWithAdaptor<Props extends {
119
126
  [key: string]: any;
120
- } ? Props : any> | CustomField<Props>;
127
+ } ? Props : any> | CustomField<Props> | SlotField;
121
128
  type FieldProps<F = Field<any>, ValueType = any> = {
122
129
  field: F;
123
130
  value: ValueType;
@@ -126,6 +133,10 @@ type FieldProps<F = Field<any>, ValueType = any> = {
126
133
  readOnly?: boolean;
127
134
  };
128
135
 
136
+ type Metadata = {
137
+ [key: string]: any;
138
+ };
139
+
129
140
  type ItemWithId = {
130
141
  _arrayId: string;
131
142
  _originalIndex: number;
package/dist/index.d.ts CHANGED
@@ -12,6 +12,8 @@ type FieldOption = {
12
12
  type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
13
13
  type BaseField = {
14
14
  label?: string;
15
+ labelIcon?: ReactElement;
16
+ metadata?: Metadata;
15
17
  };
16
18
  type TextField = BaseField & {
17
19
  type: "text";
@@ -109,6 +111,11 @@ type CustomField<Props extends any = {}> = BaseField & {
109
111
  readOnly?: boolean;
110
112
  }) => ReactElement;
111
113
  };
114
+ type SlotField = BaseField & {
115
+ type: "slot";
116
+ allow?: string[];
117
+ disallow?: string[];
118
+ };
112
119
  type Field<Props extends any = any> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<Props extends {
113
120
  [key: string]: any;
114
121
  } ? Props : any> | ObjectField<Props extends {
@@ -117,7 +124,7 @@ type Field<Props extends any = any> = TextField | NumberField | TextareaField |
117
124
  [key: string]: any;
118
125
  } ? Props : any> | ExternalFieldWithAdaptor<Props extends {
119
126
  [key: string]: any;
120
- } ? Props : any> | CustomField<Props>;
127
+ } ? Props : any> | CustomField<Props> | SlotField;
121
128
  type FieldProps<F = Field<any>, ValueType = any> = {
122
129
  field: F;
123
130
  value: ValueType;
@@ -126,6 +133,10 @@ type FieldProps<F = Field<any>, ValueType = any> = {
126
133
  readOnly?: boolean;
127
134
  };
128
135
 
136
+ type Metadata = {
137
+ [key: string]: any;
138
+ };
139
+
129
140
  type ItemWithId = {
130
141
  _arrayId: string;
131
142
  _originalIndex: number;