@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 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
@@ -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;