@measured/puck-plugin-emotion-cache 0.19.0-canary.ea844122 → 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/dist/index.d.mts +10 -9
- package/dist/index.d.ts +10 -9
- package/package.json +2 -2
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
|
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:
|
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
|
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:
|
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,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck-plugin-emotion-cache",
|
3
|
-
"version": "0.19.0-canary.
|
3
|
+
"version": "0.19.0-canary.f6398bca",
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
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.
|
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",
|