@measured/puck-plugin-emotion-cache 0.19.0-canary.f13b9536 → 0.19.0-canary.f6398bca

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
@@ -35,4 +35,4 @@ Key to pass to Emotion's [`createCache` method](https://emotion.sh/docs/@emotion
35
35
 
36
36
  ## License
37
37
 
38
- MIT © [Measured Corporation Ltd](https://measured.co)
38
+ MIT © [The Puck Contributors](https://github.com/measuredco/puck/graphs/contributors)
package/dist/index.d.mts CHANGED
@@ -100,16 +100,17 @@ type ExternalField<Props extends {
100
100
  filterFields?: Record<string, Field>;
101
101
  initialFilters?: Record<string, any>;
102
102
  };
103
- type CustomField<Props extends any = {}> = BaseField & {
103
+ type CustomFieldRender<Value extends any> = (props: {
104
+ field: CustomField<Value>;
105
+ name: string;
106
+ id: string;
107
+ value: Value;
108
+ onChange: (value: Value) => void;
109
+ readOnly?: boolean;
110
+ }) => ReactElement;
111
+ type CustomField<Value extends any> = BaseField & {
104
112
  type: "custom";
105
- render: (props: {
106
- field: CustomField<Props>;
107
- name: string;
108
- id: string;
109
- value: Props;
110
- onChange: (value: Props) => void;
111
- readOnly?: boolean;
112
- }) => ReactElement;
113
+ render: CustomFieldRender<Value>;
113
114
  };
114
115
  type SlotField = BaseField & {
115
116
  type: "slot";
package/dist/index.d.ts CHANGED
@@ -100,16 +100,17 @@ type ExternalField<Props extends {
100
100
  filterFields?: Record<string, Field>;
101
101
  initialFilters?: Record<string, any>;
102
102
  };
103
- type CustomField<Props extends any = {}> = BaseField & {
103
+ type CustomFieldRender<Value extends any> = (props: {
104
+ field: CustomField<Value>;
105
+ name: string;
106
+ id: string;
107
+ value: Value;
108
+ onChange: (value: Value) => void;
109
+ readOnly?: boolean;
110
+ }) => ReactElement;
111
+ type CustomField<Value extends any> = BaseField & {
104
112
  type: "custom";
105
- render: (props: {
106
- field: CustomField<Props>;
107
- name: string;
108
- id: string;
109
- value: Props;
110
- onChange: (value: Props) => void;
111
- readOnly?: boolean;
112
- }) => ReactElement;
113
+ render: CustomFieldRender<Value>;
113
114
  };
114
115
  type SlotField = BaseField & {
115
116
  type: "slot";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-emotion-cache",
3
- "version": "0.19.0-canary.f13b9536",
4
- "author": "Measured Corporation Ltd <hello@measured.co>",
3
+ "version": "0.19.0-canary.f6398bca",
4
+ "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
7
7
  "homepage": "https://puckeditor.com",
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "devDependencies": {
25
25
  "@emotion/react": "^11.13.3",
26
- "@measured/puck": "^0.19.0-canary.f13b9536",
26
+ "@measured/puck": "^0.19.0-canary.f6398bca",
27
27
  "@types/react": "^19.0.1",
28
28
  "@types/react-dom": "^19.0.2",
29
29
  "eslint": "^7.32.0",