@measured/puck-plugin-emotion-cache 0.20.0-canary.7d869af1 → 0.20.0-canary.7ec3c0b9
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 +11 -5
- package/dist/index.d.ts +11 -5
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -136,6 +136,7 @@ type Metadata = {
|
|
|
136
136
|
type ItemWithId = {
|
|
137
137
|
_arrayId: string;
|
|
138
138
|
_originalIndex: number;
|
|
139
|
+
_currentIndex: number;
|
|
139
140
|
};
|
|
140
141
|
type ArrayState = {
|
|
141
142
|
items: ItemWithId[];
|
|
@@ -169,6 +170,12 @@ type UiState = {
|
|
|
169
170
|
};
|
|
170
171
|
};
|
|
171
172
|
|
|
173
|
+
type RenderFunc<Props extends {
|
|
174
|
+
[key: string]: any;
|
|
175
|
+
} = {
|
|
176
|
+
children: ReactNode;
|
|
177
|
+
}> = (props: Props) => ReactElement;
|
|
178
|
+
|
|
172
179
|
type MapFnParams<ThisField = Field> = {
|
|
173
180
|
value: any;
|
|
174
181
|
parentId: string;
|
|
@@ -186,11 +193,6 @@ type FieldTransforms = Partial<{
|
|
|
186
193
|
[FieldType in Field["type"]]: FieldTransformFn<ExtractField<FieldType>>;
|
|
187
194
|
}>;
|
|
188
195
|
|
|
189
|
-
type RenderFunc<Props extends {
|
|
190
|
-
[key: string]: any;
|
|
191
|
-
} = {
|
|
192
|
-
children: ReactNode;
|
|
193
|
-
}> = (props: Props) => ReactElement;
|
|
194
196
|
declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
|
|
195
197
|
type OverrideKey = (typeof overrideKeys)[number];
|
|
196
198
|
type OverridesGeneric<Shape extends {
|
|
@@ -271,6 +273,10 @@ type Viewport = {
|
|
|
271
273
|
};
|
|
272
274
|
|
|
273
275
|
type Plugin = {
|
|
276
|
+
name?: string;
|
|
277
|
+
label?: string;
|
|
278
|
+
icon?: ReactNode;
|
|
279
|
+
render?: () => ReactElement;
|
|
274
280
|
overrides?: Partial<Overrides>;
|
|
275
281
|
fieldTransforms?: FieldTransforms;
|
|
276
282
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ type Metadata = {
|
|
|
136
136
|
type ItemWithId = {
|
|
137
137
|
_arrayId: string;
|
|
138
138
|
_originalIndex: number;
|
|
139
|
+
_currentIndex: number;
|
|
139
140
|
};
|
|
140
141
|
type ArrayState = {
|
|
141
142
|
items: ItemWithId[];
|
|
@@ -169,6 +170,12 @@ type UiState = {
|
|
|
169
170
|
};
|
|
170
171
|
};
|
|
171
172
|
|
|
173
|
+
type RenderFunc<Props extends {
|
|
174
|
+
[key: string]: any;
|
|
175
|
+
} = {
|
|
176
|
+
children: ReactNode;
|
|
177
|
+
}> = (props: Props) => ReactElement;
|
|
178
|
+
|
|
172
179
|
type MapFnParams<ThisField = Field> = {
|
|
173
180
|
value: any;
|
|
174
181
|
parentId: string;
|
|
@@ -186,11 +193,6 @@ type FieldTransforms = Partial<{
|
|
|
186
193
|
[FieldType in Field["type"]]: FieldTransformFn<ExtractField<FieldType>>;
|
|
187
194
|
}>;
|
|
188
195
|
|
|
189
|
-
type RenderFunc<Props extends {
|
|
190
|
-
[key: string]: any;
|
|
191
|
-
} = {
|
|
192
|
-
children: ReactNode;
|
|
193
|
-
}> = (props: Props) => ReactElement;
|
|
194
196
|
declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
|
|
195
197
|
type OverrideKey = (typeof overrideKeys)[number];
|
|
196
198
|
type OverridesGeneric<Shape extends {
|
|
@@ -271,6 +273,10 @@ type Viewport = {
|
|
|
271
273
|
};
|
|
272
274
|
|
|
273
275
|
type Plugin = {
|
|
276
|
+
name?: string;
|
|
277
|
+
label?: string;
|
|
278
|
+
icon?: ReactNode;
|
|
279
|
+
render?: () => ReactElement;
|
|
274
280
|
overrides?: Partial<Overrides>;
|
|
275
281
|
fieldTransforms?: FieldTransforms;
|
|
276
282
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@measured/puck-plugin-emotion-cache",
|
|
3
|
-
"version": "0.20.0-canary.
|
|
3
|
+
"version": "0.20.0-canary.7ec3c0b9",
|
|
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.20.0-canary.
|
|
26
|
+
"@measured/puck": "^0.20.0-canary.7ec3c0b9",
|
|
27
27
|
"@types/react": "^19.0.1",
|
|
28
28
|
"@types/react-dom": "^19.0.2",
|
|
29
29
|
"eslint": "^7.32.0",
|