@measured/puck-plugin-emotion-cache 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 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-emotion-cache",
3
- "version": "0.19.0-canary.a281c342",
3
+ "version": "0.19.0-canary.a6dd529f",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "devDependencies": {
25
25
  "@emotion/react": "^11.13.3",
26
- "@measured/puck": "^0.19.0-canary.a281c342",
26
+ "@measured/puck": "^0.19.0-canary.a6dd529f",
27
27
  "@types/react": "^19.0.1",
28
28
  "@types/react-dom": "^19.0.2",
29
29
  "eslint": "^7.32.0",