@measured/puck-plugin-emotion-cache 0.20.0-canary.6a211610 → 0.20.0-canary.6aefde61
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 +14 -5
- package/dist/index.d.ts +14 -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[];
|
|
@@ -167,8 +168,17 @@ type UiState = {
|
|
|
167
168
|
field: {
|
|
168
169
|
focus?: string | null;
|
|
169
170
|
};
|
|
171
|
+
plugin: {
|
|
172
|
+
current: string | null;
|
|
173
|
+
};
|
|
170
174
|
};
|
|
171
175
|
|
|
176
|
+
type RenderFunc<Props extends {
|
|
177
|
+
[key: string]: any;
|
|
178
|
+
} = {
|
|
179
|
+
children: ReactNode;
|
|
180
|
+
}> = (props: Props) => ReactElement;
|
|
181
|
+
|
|
172
182
|
type MapFnParams<ThisField = Field> = {
|
|
173
183
|
value: any;
|
|
174
184
|
parentId: string;
|
|
@@ -186,11 +196,6 @@ type FieldTransforms = Partial<{
|
|
|
186
196
|
[FieldType in Field["type"]]: FieldTransformFn<ExtractField<FieldType>>;
|
|
187
197
|
}>;
|
|
188
198
|
|
|
189
|
-
type RenderFunc<Props extends {
|
|
190
|
-
[key: string]: any;
|
|
191
|
-
} = {
|
|
192
|
-
children: ReactNode;
|
|
193
|
-
}> = (props: Props) => ReactElement;
|
|
194
199
|
declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
|
|
195
200
|
type OverrideKey = (typeof overrideKeys)[number];
|
|
196
201
|
type OverridesGeneric<Shape extends {
|
|
@@ -271,6 +276,10 @@ type Viewport = {
|
|
|
271
276
|
};
|
|
272
277
|
|
|
273
278
|
type Plugin = {
|
|
279
|
+
name?: string;
|
|
280
|
+
label?: string;
|
|
281
|
+
icon?: ReactNode;
|
|
282
|
+
render?: () => ReactElement;
|
|
274
283
|
overrides?: Partial<Overrides>;
|
|
275
284
|
fieldTransforms?: FieldTransforms;
|
|
276
285
|
};
|
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[];
|
|
@@ -167,8 +168,17 @@ type UiState = {
|
|
|
167
168
|
field: {
|
|
168
169
|
focus?: string | null;
|
|
169
170
|
};
|
|
171
|
+
plugin: {
|
|
172
|
+
current: string | null;
|
|
173
|
+
};
|
|
170
174
|
};
|
|
171
175
|
|
|
176
|
+
type RenderFunc<Props extends {
|
|
177
|
+
[key: string]: any;
|
|
178
|
+
} = {
|
|
179
|
+
children: ReactNode;
|
|
180
|
+
}> = (props: Props) => ReactElement;
|
|
181
|
+
|
|
172
182
|
type MapFnParams<ThisField = Field> = {
|
|
173
183
|
value: any;
|
|
174
184
|
parentId: string;
|
|
@@ -186,11 +196,6 @@ type FieldTransforms = Partial<{
|
|
|
186
196
|
[FieldType in Field["type"]]: FieldTransformFn<ExtractField<FieldType>>;
|
|
187
197
|
}>;
|
|
188
198
|
|
|
189
|
-
type RenderFunc<Props extends {
|
|
190
|
-
[key: string]: any;
|
|
191
|
-
} = {
|
|
192
|
-
children: ReactNode;
|
|
193
|
-
}> = (props: Props) => ReactElement;
|
|
194
199
|
declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "drawer", "drawerItem", "componentOverlay", "outline", "puck", "preview"];
|
|
195
200
|
type OverrideKey = (typeof overrideKeys)[number];
|
|
196
201
|
type OverridesGeneric<Shape extends {
|
|
@@ -271,6 +276,10 @@ type Viewport = {
|
|
|
271
276
|
};
|
|
272
277
|
|
|
273
278
|
type Plugin = {
|
|
279
|
+
name?: string;
|
|
280
|
+
label?: string;
|
|
281
|
+
icon?: ReactNode;
|
|
282
|
+
render?: () => ReactElement;
|
|
274
283
|
overrides?: Partial<Overrides>;
|
|
275
284
|
fieldTransforms?: FieldTransforms;
|
|
276
285
|
};
|
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.6aefde61",
|
|
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.6aefde61",
|
|
27
27
|
"@types/react": "^19.0.1",
|
|
28
28
|
"@types/react-dom": "^19.0.2",
|
|
29
29
|
"eslint": "^7.32.0",
|